response

package
v0.0.0-...-ce01f02 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0, Apache-2.0, BSD-2-Clause, + 1 more Imports: 3 Imported by: 0

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