http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpResponse

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

func HttpPostForm

func HttpPostForm(reqUrl string, params url.Values, logger kdniaoGo.KdniaoLoggerInterface) (HttpResponse, error)

func (HttpResponse) GetBytes

func (resp HttpResponse) GetBytes() []byte

func (HttpResponse) GetCode

func (resp HttpResponse) GetCode() int

func (HttpResponse) GetLatency

func (resp HttpResponse) GetLatency() float64

func (HttpResponse) GetLatencyStr

func (resp HttpResponse) GetLatencyStr() string

func (HttpResponse) IsOk

func (resp HttpResponse) IsOk() bool

func (*HttpResponse) SetBytes

func (resp *HttpResponse) SetBytes(bytes []byte) *HttpResponse

func (*HttpResponse) SetCode

func (resp *HttpResponse) SetCode(code int) *HttpResponse

func (*HttpResponse) SetStartTime

func (resp *HttpResponse) SetStartTime(startTime time.Time) *HttpResponse

Jump to

Keyboard shortcuts

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