Documentation ¶
Index ¶
- type Upstream
- func (u *Upstream) GetHeader(pathStr string) (*http.Response, error)
- func (u *Upstream) GetRequest(pathStr string) (*http.Response, error)
- func (u *Upstream) GetRequestPartial(pathStr string, start, end uint64) (*http.Response, error)
- func (u *Upstream) GetSize(pathStr string) (int64, error)
- func (u *Upstream) Head(pathStr string) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream struct {
// contains filtered or unexported fields
}
Upstream is a basic HTTP upstream implementation.
func (*Upstream) GetHeader ¶
GetHeader retrieves the headers for the specified path from the upstream server.
func (*Upstream) GetRequest ¶
GetRequest executes a simple GET HTTP request to the upstream server.
func (*Upstream) GetRequestPartial ¶
GetRequestPartial executes a GET HTTP request to the upstream server with a range header, specified by stand and end.
Click to show internal directories.
Click to hide internal directories.