http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const GetMethod = "GET"
View Source
const PostMethod = "POST"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewHttpClient

func NewHttpClient() *Client

func (*Client) Send

func (cl *Client) Send(method string, res interface{}) (*resty.Response, error)

func (*Client) SetBody

func (cl *Client) SetBody(body interface{}) *Client

func (*Client) SetHeader

func (cl *Client) SetHeader(key string, val string) *Client

func (*Client) SetPathParams

func (cl *Client) SetPathParams(pathParams map[string]string) *Client

func (*Client) SetQueryString

func (cl *Client) SetQueryString(queryString string) *Client

func (*Client) SetUrl

func (cl *Client) SetUrl(url string) *Client

type Method

type Method string

Jump to

Keyboard shortcuts

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