httprequest

package
v0.0.0-...-3b8fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest

type HttpRequest struct{}

func (*HttpRequest) Get

func (hr *HttpRequest) Get(url string, header map[string]string, params map[string]interface{}) ([]byte, error)

Get http get

func (*HttpRequest) Post

func (hr *HttpRequest) Post(url string, header map[string]string, params map[string]interface{}) ([]byte, error)

Post http post

func (*HttpRequest) PostMultipart

func (hr *HttpRequest) PostMultipart(url string, header map[string]string, payload *bytes.Buffer) ([]byte, error)

PostMultipart http post multipart

Jump to

Keyboard shortcuts

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