View Source LibWechat.Http.Response (lib_wechat v0.2.1)

http response

Summary

Types

Link to this type

http_response_schema_t()

View Source
@type http_response_schema_t() :: [
  status_code: integer(),
  headers: [term()],
  body: binary()
]
@type t() :: %LibWechat.Http.Response{
  body: LibWechat.Typespecs.body(),
  headers: LibWechat.Typespecs.headers(),
  status_code: non_neg_integer()
}

Functions

@spec body(t()) :: binary()
@spec json(t()) :: {:ok, LibWechat.Typespecs.string_dict()} | {:error, any()}
@spec new(http_response_schema_t()) :: t()