Package io.karatelabs.http
Class Http
java.lang.Object
io.karatelabs.http.Http
Fluent HTTP client API for making HTTP requests from Java code.
Example usage:
HttpResponse response = Http.to("https://api.example.com")
.path("users")
.header("Authorization", "Bearer token")
.get();
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncontentType(String contentType) delete()get()methodJson(String method, String body) static Http
-
Field Details
-
urlBase
-
-
Method Details
-
to
-
url
-
param
-
path
-
header
-
body
-
contentType
-
configure
-
configure
-
method
-
method
-
methodJson
-
get
-
post
-
postJson
-
put
-
putJson
-
patch
-
patchJson
-
delete
-
delete
-