response

package
v0.1.125 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHttpResponse

type DefaultHttpResponse struct {
	Response *http.Response
}

func NewDefaultHttpResponse

func NewDefaultHttpResponse(response *http.Response) *DefaultHttpResponse

func (*DefaultHttpResponse) GetBody

func (r *DefaultHttpResponse) GetBody() string

func (*DefaultHttpResponse) GetBodyAsBytes added in v0.1.106

func (r *DefaultHttpResponse) GetBodyAsBytes() ([]byte, error)

func (*DefaultHttpResponse) GetBodyAsString added in v0.1.106

func (r *DefaultHttpResponse) GetBodyAsString() (string, error)

func (*DefaultHttpResponse) GetHeader

func (r *DefaultHttpResponse) GetHeader(key string) string

func (*DefaultHttpResponse) GetHeaders

func (r *DefaultHttpResponse) GetHeaders() map[string]string

func (*DefaultHttpResponse) GetStatusCode

func (r *DefaultHttpResponse) GetStatusCode() int

Jump to

Keyboard shortcuts

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