Documentation ¶
Index ¶
- Constants
- Variables
- func GetSubscriptionInput(input []byte) (url, header, body []byte)
- func NewRequestWithContext(ctx context.Context, method, url string, body io.Reader) (*http.Request, error)
- func SetInputBody(input, body []byte) []byte
- func SetInputBodyWithPath(input, body []byte, path string) []byte
- func SetInputHeader(input, headers []byte) []byte
- func SetInputHost(input, host []byte) []byte
- func SetInputMethod(input, method []byte) []byte
- func SetInputPath(input, path []byte) []byte
- func SetInputQueryParams(input, queryParams []byte) []byte
- func SetInputScheme(input, scheme []byte) []byte
- func SetInputURL(input, url []byte) []byte
- type Client
- type FastHttpClient
- type NetHttpClient
- type Option
Constants ¶
View Source
const ( PATH = "path" URL = "url" BASEURL = "base_url" METHOD = "method" BODY = "body" HEADER = "header" QUERYPARAMS = "query_params" SCHEME = "scheme" HOST = "host" )
Variables ¶
Functions ¶
func GetSubscriptionInput ¶
func NewRequestWithContext ¶
func SetInputBody ¶
func SetInputBodyWithPath ¶
func SetInputHeader ¶
func SetInputHost ¶
func SetInputMethod ¶
func SetInputPath ¶
func SetInputQueryParams ¶
func SetInputScheme ¶
func SetInputURL ¶
Types ¶
type FastHttpClient ¶
type FastHttpClient struct {
// contains filtered or unexported fields
}
func NewFastHttpClient ¶
func NewFastHttpClient(client *fasthttp.Client, options ...Option) *FastHttpClient
type NetHttpClient ¶
type NetHttpClient struct {
// contains filtered or unexported fields
}
func NewNetHttpClient ¶
func NewNetHttpClient(client *http.Client) *NetHttpClient
type Option ¶
type Option func(c *FastHttpClient)
func WithLogger ¶
func WithLogger(logger abstractlogger.Logger) Option
Click to show internal directories.
Click to hide internal directories.