Documentation
¶
Index ¶
- type Requester
- func (h *Requester) AsBytes(ctx context.Context) []byte
- func (h *Requester) AsString(ctx context.Context) string
- func (h *Requester) Delete(u string, body io.Reader) *Requester
- func (h *Requester) Get(u string) *Requester
- func (h *Requester) Head(key, value string) *Requester
- func (h *Requester) Post(u string, body io.Reader) *Requester
- func (h *Requester) Put(u string, body io.Reader) *Requester
- func (h *Requester) Response(ctx context.Context) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func NewRequester ¶
func NewRequester() *Requester
Click to show internal directories.
Click to hide internal directories.