buildHttps

package module
v1.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

README

buildHttps

buildHttps

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*Client) Bytes added in v1.5.5

func (c *Client) Bytes() []byte

func (*Client) CookieString added in v1.0.7

func (c *Client) CookieString() string

func (*Client) Cookies added in v1.0.2

func (c *Client) Cookies() map[string]string

func (*Client) DecodeJson

func (c *Client) DecodeJson(v any) error

func (*Client) Gjson

func (c *Client) Gjson() gjson.Result

func (*Client) SendRequest

func (c *Client) SendRequest() *Client

func (*Client) String

func (c *Client) String() string

type HTTPRequestBuilder

type HTTPRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*HTTPRequestBuilder) Build added in v1.4.6

func (*HTTPRequestBuilder) Debug added in v1.2.1

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 Get added in v1.4.6

func Get(URL string, data any, header map[string]string) RequestBuilder

func Patch added in v1.4.6

func Patch(URL string, header map[string]string, data any) RequestBuilder

func Post added in v1.4.6

func Post(URL string, data any, header map[string]string) RequestBuilder

func Put added in v1.4.6

func Put(URL string, data any, header map[string]string) RequestBuilder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL