HTTPipe v0.9.0 HTTPipe.InspectionHelpers
Helper module for formatting HTTPipe.Conn
, HTTPipe.Request
, and HTTPipe.Response
structs.
This module offers a way to nicely report the state of Conn
, Request
, and Response
structs using standard Inspect.Algebra
documents, however the result is far too intrusive
to be used as the default protocol implementation. Therefore, each module has an individual
inspect/2
function that can be called which will display the output:
Summary
Functions
Inserts two lines above the algebra document for spacing
Functions
Specs
double_line_break(Inspect.Algebra.t) :: Inspect.Algebra.t
Inserts two lines above the algebra document for spacing
Specs
format_nested_with_header(Inspect.Algebra.t, String.t, atom) :: Inspect.Algebra.t
Specs
inspect_body(HTTPipe.Request.body, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_conn_status(atom, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_error(nil | HTTPipe.Conn.exception, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_full_url(HTTPipe.Request.url, HTTPipe.Request.params, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_headers(HTTPipe.Request.headers | HTTPipe.Response.headers) :: Inspect.Algebra.t
Specs
inspect_http_version(HTTPipe.Request.http_version, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_params(HTTPipe.Request.params, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_request(nil | HTTPipe.Request.t, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_response(HTTPipe.Response.t, Inspect.Opts.t) :: Inspect.Algebra.t
Specs
inspect_status_code(HTTPipe.Response.status_code, Inspect.Opts.t) :: Inspect.Algebra.t