Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHeader ¶
type HttpHeaders ¶
type HttpHeaders struct {
Data map[string]*HttpHeader
}
type HttpRequest ¶
type HttpRequest struct {
Url string
Method string
Headers *HttpHeaders
Body []byte
}
type HttpResponse ¶
type HttpResponse struct {
Status uint16
StatusText string
Headers *HttpHeaders
Body []byte
}
func Fetch ¶
func Fetch(ctx context.Context, request *HttpRequest) (*HttpResponse, error)
Click to show internal directories.
Click to hide internal directories.