j2sjavanethttpclient


License

License

Categories

Categories

Net CLI User Interface
GroupId

GroupId

com.github.zeab
ArtifactId

ArtifactId

j2sjavanethttpclient_2.12
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

j2sjavanethttpclient
j2sjavanethttpclient
Project URL

Project URL

https://github.com/zeab/j2s-java-net-http-client
Project Organization

Project Organization

com.github.zeab
Source Code Management

Source Code Management

https://github.com/zeab/j2s-java-net-http-client

Download j2sjavanethttpclient_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.zeab/j2sjavanethttpclient_2.12/ -->
<dependency>
    <groupId>com.github.zeab</groupId>
    <artifactId>j2sjavanethttpclient_2.12</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.zeab/j2sjavanethttpclient_2.12/
implementation 'com.github.zeab:j2sjavanethttpclient_2.12:2.0.0'
// https://jarcasting.com/artifacts/com.github.zeab/j2sjavanethttpclient_2.12/
implementation ("com.github.zeab:j2sjavanethttpclient_2.12:2.0.0")
'com.github.zeab:j2sjavanethttpclient_2.12:jar:2.0.0'
<dependency org="com.github.zeab" name="j2sjavanethttpclient_2.12" rev="2.0.0">
  <artifact name="j2sjavanethttpclient_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.zeab', module='j2sjavanethttpclient_2.12', version='2.0.0')
)
libraryDependencies += "com.github.zeab" % "j2sjavanethttpclient_2.12" % "2.0.0"
[com.github.zeab/j2sjavanethttpclient_2.12 "2.0.0"]

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8
org.scalatest : scalatest_2.12 jar 3.0.5
com.github.zeab : aenea_2.12 jar 1.0.0
io.circe : circe-parser_2.12 jar 0.9.3
io.circe : circe-generic_2.12 jar 0.9.3
com.github.zeab : httpseed_2.12 jar [1.0,1.1)

Project Modules

There are no modules declared in this project.

j2s-java-net-http-client

Scala wrapper around Java.net Http Client with automatic case class support for json and xml (Circe and Aenea)

Maven Central Build Status Codacy Badge

Sync Example:

import io.circe.generic.auto._
import zeab.j2sjavanethttpclient.httpclient.HttpClient
HttpClient.invokeHttp[String, String](http://google.com)

Async Example:

import io.circe.generic.auto._
import zeab.j2sjavanethttpclient.httpclient.HttpClient
HttpClient.invokeAsyncHttp[String, String](http://google.com)

Request and Response Bodys:

import io.circe.generic.auto._
import zeab.j2sjavanethttpclient.httpclient.HttpClient

case class MyRequest(id:String)
case class MyResponse(id:String)

HttpClient.invokeHttp[MyRequest, MyResponse](http://google.com, "POST", MyRequest("1"), Map("Content-Type" -> "application/json", "Accept" -> "application/json"))

Performance Mode (skips dealing with the response body completely):

import io.circe.generic.auto._
import zeab.j2sjavanethttpclient.httpclient.HttpClient
HttpClient.invokeHttp[String, NoBody](http://google.com)

Versions

Version
2.0.0
2.0.0-RC1
1.1.6
1.1.2
1.1.1
0.0.1
0.0.0