Documentation
¶
Overview ¶
Package client sends httpfile.Request values over HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Request httpfile.Request
StatusCode int
Status string
Headers http.Header
Body []byte
Duration time.Duration
Err error
// FinalURL is the URL the response actually came from, after following
// any redirects. It equals Request.URL when there were none.
FinalURL string
// TLS is the connection's TLS state, or nil for a plain HTTP request.
TLS *tls.ConnectionState
}
Result is the outcome of sending a single request. A non-nil Err means the request couldn't be sent or the response couldn't be read -- it does not mean the server returned a non-2xx status, which is a normal Result with Err == nil.
Click to show internal directories.
Click to hide internal directories.