httpClient

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
	URL     string
	Method  string
	Param   interface{}
	Headers map[string]string
	// contains filtered or unexported fields
}

func New

func New(url string) *HttpClient

func (*HttpClient) Get

func (this *HttpClient) Get(result interface{}) error

func (*HttpClient) Post

func (this *HttpClient) Post(data interface{}, result interface{}) error

func (*HttpClient) SetHeaders

func (this *HttpClient) SetHeaders(headers map[string]string) *HttpClient

func (*HttpClient) SetMethod

func (this *HttpClient) SetMethod(method string) *HttpClient

Jump to

Keyboard shortcuts

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