requests

package
v0.0.0-...-41ad4b5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransPort

func NewTransPort() *http.Transport

Types

type GetOrDeleteParams

type GetOrDeleteParams struct {
	URL         string
	Headers     map[string]string
	Params      map[string]string
	Empowerment interface{}
}

type HTTPClient

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

func NewHTTPClient

func NewHTTPClient() *HTTPClient

func (*HTTPClient) DELETE

func (r *HTTPClient) DELETE(obj *GetOrDeleteParams) error

func (*HTTPClient) GET

func (r *HTTPClient) GET(obj *GetOrDeleteParams) error

func (*HTTPClient) POST

func (r *HTTPClient) POST(obj *PostOrPutParams) error

func (*HTTPClient) PUT

func (r *HTTPClient) PUT(obj *PostOrPutParams) error

func (*HTTPClient) SplicingFullURL

func (r *HTTPClient) SplicingFullURL(protocol, host, uri string, port int) string

type PostOrPutParams

type PostOrPutParams struct {
	URL         string
	Headers     map[string]string
	Body        interface{}
	Empowerment interface{}
}

Jump to

Keyboard shortcuts

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