httputils

package
v0.3.36 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpHeaderToMap

func HttpHeaderToMap(header http.Header) map[string]string

func Params

func Params(ctx *fiber.Ctx) map[string]interface{}

Types

type ResponseData

type ResponseData struct {
	StatusCode int
	Body       []byte
	Header     map[string]string
}

func NewResponseData

func NewResponseData(res *fasthttp.Response) *ResponseData

func NewResponseDataEmpty

func NewResponseDataEmpty() *ResponseData

func (*ResponseData) BodyAsMap

func (instance *ResponseData) BodyAsMap() map[string]interface{}

func (*ResponseData) String

func (instance *ResponseData) String() string

Jump to

Keyboard shortcuts

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