Documentation
¶
Index ¶
- func SetupTransport(proxyUrl string)
- type Request
- func (r Request) Clone() Request
- func (r Request) HasFormUrlEncodedBody() bool
- func (r Request) HasJsonBody() bool
- func (r Request) HasJsonCookie(key string) bool
- func (r Request) HasMultipartFormBody() bool
- func (r Request) Raw(host string) []byte
- func (r Request) Send(host string) (Response, error)
- func (r Request) WithBody(body []byte) Request
- func (r Request) WithCookie(key, val string) Request
- func (r Request) WithCookieString(val string) Request
- func (r Request) WithHeader(key, val string) Request
- func (r Request) WithHeaderString(header string) Request
- func (r Request) WithPath(path string) Request
- func (r Request) WithQuery(query string) Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupTransport ¶
func SetupTransport(proxyUrl string)
Types ¶
type Request ¶
type Request struct { Method string RequestUri string Path string Query string ProtocolVersion string Headers map[string]string Cookies map[string]string Body []byte }
func (Request) HasFormUrlEncodedBody ¶
func (Request) HasJsonBody ¶
func (Request) HasJsonCookie ¶ added in v0.3.0
func (Request) HasMultipartFormBody ¶
func (Request) WithCookie ¶
func (Request) WithCookieString ¶ added in v0.3.0
func (Request) WithHeader ¶
func (Request) WithHeaderString ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.