common

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderReqNo http header
	HeaderReqNo = "Request-No"
)

Variables

This section is empty.

Functions

func DumpRequest added in v1.3.0

func DumpRequest(r *http.Request) string

DumpRequest dump the request into a string

func DumpResponse added in v1.3.0

func DumpResponse(resp *http.Response) string

DumpResponse dump the response into a string

func GetBody

func GetBody(r *http.Request) []byte

GetBody get the content of the body, closes the read one and adds a new read closer to the request

func SortPaths

func SortPaths(paths []string)

SortPaths sort the path string slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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