Oaskit.Validation.ResponseData (oaskit v0.9.0)

View Source

A subset of a Plug.Conn struct representing an HTTP response, used by Oaskit.Test and Oaskit.Validation.ResponseValidator.

The :resp_body key must be parsed if the content-type is application/json, that is, it must be a map (or other JSON data) and not a binary.

Summary

Types

headers()

@type headers() :: [{binary(), binary()}]

t()

@type t() :: %Oaskit.Validation.ResponseData{
  resp_body: term(),
  resp_headers: headers(),
  status: pos_integer()
}