response

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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) 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

type HttpResponse

type HttpResponse interface {
	GetStatusCode() int
	GetHeaders() map[string]string
	GetBody() string
	GetBodyJson() interface{}
	GetHeader(key string) string
}

Jump to

Keyboard shortcuts

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