response

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package request is used for internal. You should not depend on it directly, breaking changes can and will be introducted to it.

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