Groq.HTTPClient behaviour (Groq v0.1.0)
HTTP client behaviour.
Summary
Types
The body for an HTTP request or response.
The headers for an HTTP request or response.
The response for an HTTP request.
The response status for an HTTP request.
Callbacks
Make an HTTP POST request to the given url
with the provided req_headers
and req_body
.
Types
Link to this type
body()
@type body() :: binary()
The body for an HTTP request or response.
Link to this type
headers()
The headers for an HTTP request or response.
Link to this type
response()
The response for an HTTP request.
Link to this type
status()
@type status() :: 100..599
The response status for an HTTP request.
Callbacks
Link to this callback
post(url, req_headers, req_body)
Make an HTTP POST request to the given url
with the provided req_headers
and req_body
.