View Source LibWechat.Http.Request (lib_wechat v0.2.0)
http request
Summary
Types
@type t() :: %LibWechat.Http.Request{ body: LibWechat.Typespecs.body(), headers: LibWechat.Typespecs.headers(), host: String.t(), method: LibWechat.Typespecs.method(), opts: LibWechat.Typespecs.opts(), params: LibWechat.Typespecs.params(), path: bitstring(), port: non_neg_integer(), scheme: String.t() }
Functions
@spec new(http_request_schema_t()) :: t()
create new http request instance
Params
:scheme
(String.t/0
) - http scheme The default value is"https"
.:host
(String.t/0
) - http host The default value is"api.weixin.qq.com"
.:port
(integer/0
) - http port The default value is443
.:method
(term/0
) - http method The default value is:get
.:path
(String.t/0
) - http path The default value is"/"
.:headers
(list ofterm/0
) - http headers The default value is[]
.:body
(term/0
) - http body The default value isnil
.:params
(map ofString.t/0
keys andString.t/0
values) - http query params The default value is%{}
.:opts
(keyword/0
) - http opts The default value is[]
.