View Source AnyHttp.Response (Any HTTP v0.4.1)

Defines a generic struct to encapsulate a HTTP response.

Summary

Types

@type body() :: term()
@type headers() :: %{required(binary()) => [binary()]}
@type status() :: 100..599
@type t() :: %AnyHttp.Response{body: body(), headers: headers(), status: status()}