View Source LibWechat.Http behaviour (lib_wechat v0.2.1)
behavior os http transport
Summary
Types
@type t() :: struct()
Callbacks
@callback do_request( http :: t(), req :: LibWechat.Http.Request.t() ) :: {:ok, LibWechat.Http.Response.t()} | {:error, LibWechat.Error.t()}
@callback new(LibWechat.Typespecs.opts()) :: t()
@callback start_link([{:http, t()}]) :: LibWechat.Typespecs.on_start()
Functions
@spec do_request(t(), LibWechat.Http.Request.t()) :: {:ok, LibWechat.Http.Response.t()} | {:error, LibWechat.Error.t()}