response

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

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

func New

func New(response *http.Response) (*Response, error)

func (*Response) Body added in v0.1.2

func (r *Response) Body() (io.ReadCloser, error)

func (*Response) Bytes

func (r *Response) Bytes() ([]byte, error)

func (*Response) Header

func (r *Response) Header(key string) string

func (*Response) Headers

func (r *Response) Headers() map[string][]string

func (*Response) JsonUnmarshal

func (r *Response) JsonUnmarshal(v interface{}) error

func (*Response) Status added in v0.0.2

func (r *Response) Status() string

func (*Response) StatusCode added in v0.0.3

func (r *Response) StatusCode() int

func (*Response) String

func (r *Response) String() (string, error)

func (*Response) XmlUnmarshal

func (r *Response) XmlUnmarshal(v interface{}) error

func (*Response) YamlUnmarshal

func (r *Response) YamlUnmarshal(v interface{}) error

Jump to

Keyboard shortcuts

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