HTTPill v0.2.0 HTTPill.Response View Source
Represents an HTTP response and carries all the information returned from a
HTTPill.Request
, all along with the request
itself.
To get a new response with correctly handled data, please give a check on the
new/5
function.
Link to this section Summary
Functions
Creates a brand new response, correctly handling body parsing and other things, making it ready to be worked on
Link to this section Types
Link to this type
result()
View Source
result :: {:ok, HTTPill.Response.t | AsyncResponse.t} | {:status_error, HTTPill.Response.t}
Link to this type
t()
View Source
t() :: %HTTPill.Response{body: term, headers: HTTPill.HeaderList.t, request: HTTPill.Request.t, status_code: integer}
Link to this section Functions
Link to this function
new(request, status_code, headers, body, config, before_process, after_process)
View Source
new(HTTPill.Request.t, integer, HTTPill.HeaderList.t, binary, HTTPill.Config.t, function, function) :: HTTPill.Response.result
Creates a brand new response, correctly handling body parsing and other things, making it ready to be worked on.