http

package
v0.0.0-...-8b17fe9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOptions

type GetOptions struct {
	Header map[string]string
}

type HttpClient

type HttpClient struct {
}

func NewHttpClient

func NewHttpClient() *HttpClient

func (*HttpClient) Get

func (h *HttpClient) Get(url string, data map[string]string, options GetOptions) (body []byte, err error)

func (*HttpClient) PostForm

func (h *HttpClient) PostForm(url string, data map[string]string, options PostOptions) (body []byte, err error)

func (*HttpClient) PostJson

func (h *HttpClient) PostJson(url string, data interface{}, options PostOptions) (body []byte, err error)

type PostOptions

type PostOptions struct {
	Header map[string]string
}

Jump to

Keyboard shortcuts

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