io

package
v0.0.0-...-ab1236c Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebClient

type WebClient struct {
	Headers map[string]string
	// contains filtered or unexported fields
}

WebClient is a simple api to send http request and receive response.

func NewWebClient

func NewWebClient() *WebClient

NewWebClient new WebClient,default has application/json and utf-8 headers.

func (*WebClient) Get

func (wc *WebClient) Get(url string) (string, error)

Get Send get request to remote

func (*WebClient) Post

func (wc *WebClient) Post(url, body string) (string, error)

Post Send post request to remote

Jump to

Keyboard shortcuts

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