http

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 1 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 {
	Code    int         `json:"code"`
	Status  string      `json:"status"`
	Content interface{} `json:"content,omitempty"`
}

func (*Response) ContentToBytes added in v1.2.0

func (r *Response) ContentToBytes() []byte

func (*Response) GetStatusCode

func (r *Response) GetStatusCode() int

func (*Response) SetResponseData

func (r *Response) SetResponseData(code int, status string, content interface{})

func (*Response) ToBytes

func (r *Response) ToBytes() []byte

func (*Response) ToString

func (r *Response) ToString() string

Jump to

Keyboard shortcuts

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