httpclientmodule

package
v0.0.0-...-a538cea Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClientModule

type HttpClientModule struct {
	service.Module
	// contains filtered or unexported fields
}

func (*HttpClientModule) Init

func (slf *HttpClientModule) Init(maxpool int, proxyUrl string)

func (*HttpClientModule) Request

func (slf *HttpClientModule) Request(method string, url string, body []byte, header http.Header) HttpRespone

func (*HttpClientModule) SyncRequest

func (slf *HttpClientModule) SyncRequest(method string, url string, body []byte, header http.Header) SyncHttpRespone

type HttpRespone

type HttpRespone struct {
	Err        error
	Header     http.Header
	StatusCode int
	Status     string
	Body       []byte
}

type SyncHttpRespone

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

func (*SyncHttpRespone) Get

func (slf *SyncHttpRespone) Get(timeoutMs int) HttpRespone

Jump to

Keyboard shortcuts

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