mhttp

package
v0.0.0-...-0b61f1f Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig() *config

func NewDefaultServer

func NewDefaultServer(cfg *config) *server

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) GetWithContext

func (c *Client) GetWithContext(ctx context.Context, url string, httpHeader http.Header, urlValues url.Values) (*http.Response, error)

type Response

type Response struct {
	HResp    *http.Response
	RespBody []byte
}

func HttpResponseToMHttpResponse

func HttpResponseToMHttpResponse(resp *http.Response, doErr error) (*Response, error)

Jump to

Keyboard shortcuts

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