response

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonResponse

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

CommonResponse is for storing message of httpResponse

func (*CommonResponse) GetHTTPContentBytes

func (resp *CommonResponse) GetHTTPContentBytes() []byte

GetHTTPContentBytes return body content as []byte

func (*CommonResponse) GetHTTPContentString

func (resp *CommonResponse) GetHTTPContentString() string

GetHTTPContentString return body content as string

func (*CommonResponse) GetHTTPHeaders

func (resp *CommonResponse) GetHTTPHeaders() map[string][]string

GetHTTPHeaders returns httpresponse's headers

func (*CommonResponse) GetHTTPStatus

func (resp *CommonResponse) GetHTTPStatus() int

GetHTTPStatus returns httpStatus

func (*CommonResponse) ParseFromHTTPResponse

func (resp *CommonResponse) ParseFromHTTPResponse(httpResponse *http.Response) (err error)

ParseFromHTTPResponse assigns for CommonResponse, returns err when body is too large.

Jump to

Keyboard shortcuts

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