httpclientmodule

package
v0.0.0-...-ff803ae Latest Latest
Warning

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

Go to latest
Published: Nov 20, 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 (m *HttpClientModule) Init(maxpool int, proxyUrl string)

func (*HttpClientModule) Request

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

func (*HttpClientModule) SetTimeOut

func (m *HttpClientModule) SetTimeOut(value time.Duration)

func (*HttpClientModule) SyncRequest

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

type HttpResponse

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

type SyncHttpResponse

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

func (*SyncHttpResponse) Get

func (slf *SyncHttpResponse) Get(timeoutMs int) HttpResponse

Jump to

Keyboard shortcuts

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