Documentation ¶
Index ¶
- type HttpResponse
- func (resp HttpResponse) GetBytes() []byte
- func (resp HttpResponse) GetCode() int
- func (resp HttpResponse) GetLatency() float64
- func (resp HttpResponse) GetLatencyStr() string
- func (resp HttpResponse) IsOk() bool
- func (resp *HttpResponse) SetBytes(bytes []byte) *HttpResponse
- func (resp *HttpResponse) SetCode(code int) *HttpResponse
- func (resp *HttpResponse) SetStartTime(startTime time.Time) *HttpResponse
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
Click to show internal directories.
Click to hide internal directories.