Registry / http-client / scalaj-http-2-12

scalaj-http-2-12

JSON →
library2.4.2javamavenunverified

Simple HTTP client library for Scala, providing a fluent API for making HTTP requests.

<dependency> <groupId>org.scalaj</groupId> <artifactId>scalaj-http_2.12</artifactId> <version>2.4.2</version> </dependency>
INSTALL
IMPORT
SIG · SCALAJ-HTTP-2-12
S
scalaj-http-2-12
http-clientjavav2.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Http
scalaj.http.Http

Make a simple HTTP GET request with parameters

import scalaj.http.Http; public class HttpExample { public static void main(String[] args) { String response = Http("https://api.example.com/data") .param("key", "value") .asString() .body(); System.out.println(response); } }
Debug
Known issues
breakingScala 2.12 version; not compatible with Scala 2.13 or 3.x.
fix
Use scalaj-http_2.13 or scalaj-http_3 for respective Scala versions.
affects: >=2.0.0
Upgrade
Version history
2.4.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
scalaj-http-2-12 — mvn dependency:get scalaj-http-2-12 · libregistry