Documentation ¶
Overview ¶
Package http is an implementation detail. You should not use it directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { // Call the server with the supplied request, returning a response if and // only if a response was received from the server. (That is, a 500 error // from the server will be returned here as a response with a nil error). SendRequest(r *Request) (*Response, error) }
A connection to a particular server over a particular protocol (HTTP or HTTPS).
type Error ¶
A struct representing an error generated in the process of performing some operation. It exposes the original error returned by that operation for downstream consumption.
Exposed only for testing. Do not use directly.
type Request ¶
type Request struct { // The HTTP verb; e.g. "PUT" or "GET". Verb string // The path of the HTTP request URI, including the bucket name. This should // not be URL-encoded. // // For example: // /mybucket // /mybucket/foo/bar/baz.jpg // Path string // Request parameters, as defined by the S3 service being called. These // should not be URL-encoded. // // For example: // max-keys: 50 // marker: 타코 // Parameters map[string]string // HTTP headers to be included in the request. Headers map[string]string // The body of the request. Body []byte }
An HTTP request to S3.
Click to show internal directories.
Click to hide internal directories.