Documentation ¶
Index ¶
- type Client
- type HTTPRequestBuilder
- func (b *HTTPRequestBuilder) Build(ctx context.Context, URL string) RequestBuilder
- func (b *HTTPRequestBuilder) Debug() *HTTPRequestBuilder
- func (b *HTTPRequestBuilder) FormData(value any) *HTTPRequestBuilder
- func (b *HTTPRequestBuilder) HttpClient() *Client
- func (b *HTTPRequestBuilder) Json(value any) *HTTPRequestBuilder
- func (b *HTTPRequestBuilder) SetHeader(header map[string]string) *HTTPRequestBuilder
- type RequestBuilder
- func Delete(URL string, header map[string]string, data any) RequestBuilder
- func Df(method string) RequestBuilder
- func Get(URL string, data any, header map[string]string) RequestBuilder
- func Patch(URL string, header map[string]string, data any) RequestBuilder
- func Post(URL string, data any, header map[string]string) RequestBuilder
- func Put(URL string, data any, header map[string]string) RequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CookieString ¶ added in v1.0.7
func (*Client) DecodeJson ¶
func (*Client) SendRequest ¶
type HTTPRequestBuilder ¶
type HTTPRequestBuilder struct {
// contains filtered or unexported fields
}
func (*HTTPRequestBuilder) Build ¶ added in v1.4.6
func (b *HTTPRequestBuilder) Build(ctx context.Context, URL string) RequestBuilder
func (*HTTPRequestBuilder) Debug ¶ added in v1.2.1
func (b *HTTPRequestBuilder) Debug() *HTTPRequestBuilder
func (*HTTPRequestBuilder) FormData ¶
func (b *HTTPRequestBuilder) FormData(value any) *HTTPRequestBuilder
func (*HTTPRequestBuilder) HttpClient ¶
func (b *HTTPRequestBuilder) HttpClient() *Client
func (*HTTPRequestBuilder) Json ¶
func (b *HTTPRequestBuilder) Json(value any) *HTTPRequestBuilder
func (*HTTPRequestBuilder) SetHeader ¶ added in v1.4.6
func (b *HTTPRequestBuilder) SetHeader(header map[string]string) *HTTPRequestBuilder
type RequestBuilder ¶
type RequestBuilder interface { Build(ctx context.Context, endURL string) RequestBuilder Json(value any) *HTTPRequestBuilder Debug() *HTTPRequestBuilder SetHeader(header map[string]string) *HTTPRequestBuilder FormData(value any) *HTTPRequestBuilder HttpClient() *Client }
func Delete ¶ added in v1.4.6
func Delete(URL string, header map[string]string, data any) RequestBuilder
func Df ¶ added in v1.2.1
func Df(method string) RequestBuilder
func Patch ¶ added in v1.4.6
func Patch(URL string, header map[string]string, data any) RequestBuilder
Click to show internal directories.
Click to hide internal directories.