Documentation ¶
Index ¶
- type BodyBytes
- func (bb *BodyBytes) AsBytes() (result []byte, err error)
- func (bb *BodyBytes) AsBytesResponse() (result []byte, response *http.Response, err error)
- func (bb *BodyBytes) AsMap() (result map[string]interface{}, err error)
- func (bb *BodyBytes) AsString() (result string, err error)
- func (bb *BodyBytes) AsStringResponse() (result string, response *http.Response, err error)
- func (bb *BodyBytes) Response() (response *http.Response, err error)
- func (bb *BodyBytes) ToStruct(out interface{}) (err error)
- func (bb *BodyBytes) ToStructResponse(out interface{}) (response *http.Response, err error)
- type BodyForm
- func (bf *BodyForm) AsBytes() (result []byte, err error)
- func (bf *BodyForm) AsBytesResponse() (result []byte, response *http.Response, err error)
- func (bf *BodyForm) AsMap() (result map[string]interface{}, err error)
- func (bf *BodyForm) AsString() (result string, err error)
- func (bf *BodyForm) AsStringResponse() (result string, response *http.Response, err error)
- func (bf *BodyForm) Response() (response *http.Response, err error)
- func (bf *BodyForm) ToStruct(out interface{}) (err error)
- func (bf *BodyForm) ToStructResponse(out interface{}) (response *http.Response, err error)
- type BodyJson
- func (bj *BodyJson) AsBytes() (result []byte, err error)
- func (bj *BodyJson) AsBytesResponse() (result []byte, response *http.Response, err error)
- func (bj *BodyJson) AsMap() (result map[string]interface{}, err error)
- func (bj *BodyJson) AsString() (result string, err error)
- func (bj *BodyJson) AsStringResponse() (result string, response *http.Response, err error)
- func (bj *BodyJson) Response() (response *http.Response, err error)
- func (bj *BodyJson) ToStruct(out interface{}) (err error)
- func (bj *BodyJson) ToStructResponse(out interface{}) (response *http.Response, err error)
- type BodyXml
- func (bx *BodyXml) AsBytes() (result []byte, err error)
- func (bx *BodyXml) AsBytesResponse() (result []byte, response *http.Response, err error)
- func (bx *BodyXml) AsMap() (result map[string]interface{}, err error)
- func (bx *BodyXml) AsString() (result string, err error)
- func (bx *BodyXml) AsStringResponse() (result string, response *http.Response, err error)
- func (bx *BodyXml) MarshalSettings(prefix, indent string) *BodyXml
- func (bx *BodyXml) Response() (response *http.Response, err error)
- func (bx *BodyXml) ToStruct(out interface{}) (err error)
- func (bx *BodyXml) ToStructResponse(out interface{}) (response *http.Response, err error)
- type Error
- type HGet
- func (h *HGet) AsBytes() (result []byte, err error)
- func (h *HGet) AsBytesResponse() (result []byte, response *http.Response, err error)
- func (h *HGet) AsMap() (result map[string]interface{}, err error)
- func (h *HGet) AsMapResponse() (result map[string]interface{}, response *http.Response, err error)
- func (h *HGet) AsString() (result string, err error)
- func (h *HGet) AsStringResponse() (result string, response *http.Response, err error)
- func (h *HGet) Headers(headers http.Header) *HGet
- func (h *HGet) Query(query url.Values) *HGet
- func (h *HGet) Response() (response *http.Response, err error)
- func (h *HGet) SetHeader(key, value string) *HGet
- func (h *HGet) SetValue(key, value string) *HGet
- func (h *HGet) ToStruct(out interface{}) (err error)
- func (h *HGet) ToStructResponse(out interface{}) (response *http.Response, err error)
- type HMethod
- type HPost
- func (h *HPost) Bytes(body []byte) *BodyBytes
- func (h *HPost) Form(body url.Values) *BodyForm
- func (h *HPost) Headers(headers http.Header) *HPost
- func (h *HPost) Json(body interface{}) *BodyJson
- func (h *HPost) Query(query url.Values) *HPost
- func (h *HPost) SetHeader(key, value string) *HPost
- func (h *HPost) SetValue(key, value string) *HPost
- func (h *HPost) Xml(body interface{}) *BodyXml
- type HPut
- func (h *HPut) Bytes(body []byte) *BodyBytes
- func (h *HPut) Form(body url.Values) *BodyForm
- func (h *HPut) Headers(headers http.Header) *HPut
- func (h *HPut) Json(body interface{}) *BodyJson
- func (h *HPut) Query(query url.Values) *HPut
- func (h *HPut) SetHeader(key, value string) *HPut
- func (h *HPut) SetValue(key, value string) *HPut
- func (h *HPut) Xml(body interface{}) *BodyXml
- type Hog
- func (h *Hog) Context(context context.Context) *Hog
- func (h *Hog) Get(url string) *HGet
- func (h *Hog) GetF(format string, a ...any) *HGet
- func (h *Hog) Headers(headers http.Header) *Hog
- func (h *Hog) LogLevel(level LogLevel) *Hog
- func (h *Hog) Logger(logger Logger) *Hog
- func (h *Hog) Post(url string) *HPost
- func (h *Hog) PostF(format string, a ...any) *HPost
- func (h *Hog) Put(url string) *HPut
- func (h *Hog) PutF(format string, a ...any) *HPut
- func (h *Hog) RetryCount(count int) *Hog
- func (h *Hog) SetHeader(key, value string) *Hog
- type LogLevel
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyBytes ¶
type BodyBytes struct {
// contains filtered or unexported fields
}
func (*BodyBytes) AsBytesResponse ¶
func (*BodyBytes) AsStringResponse ¶
type BodyForm ¶
type BodyForm struct {
// contains filtered or unexported fields
}
func (*BodyForm) AsBytesResponse ¶
func (*BodyForm) AsStringResponse ¶
type BodyJson ¶
type BodyJson struct {
// contains filtered or unexported fields
}
func (*BodyJson) AsBytesResponse ¶
func (*BodyJson) AsStringResponse ¶
type BodyXml ¶
type BodyXml struct {
// contains filtered or unexported fields
}
func (*BodyXml) AsBytesResponse ¶
func (*BodyXml) AsStringResponse ¶
func (*BodyXml) MarshalSettings ¶
type HGet ¶
type HGet struct {
// contains filtered or unexported fields
}
func (*HGet) AsBytesResponse ¶
func (*HGet) AsMapResponse ¶
func (*HGet) AsStringResponse ¶
Click to show internal directories.
Click to hide internal directories.