gin

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPMethodGET    = http.MethodGet
	HTTPMethodPOST   = http.MethodPost
	HTTPMethodPUT    = http.MethodPut
	HTTPMethodDELETE = http.MethodDelete
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	R      *gin.Engine
	Url    string
	Herder map[string]string
	Method string
	Body   io.Reader
}

type Response

type Response struct {
	StatusCode int
	Body       []byte
	Response   *http.Response
}

func Req

func Req(request *Request) (*Response, string, error)

Jump to

Keyboard shortcuts

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