request

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(r *http.Request, v interface{}) error

Unmarshal the request data into v

Types

type Acceptable

type Acceptable accept.AcceptSlice

Acceptable types

func Accepts

func Accepts(r *http.Request) Acceptable

Accepts a type

func (Acceptable) Accepts

func (as Acceptable) Accepts(ctype string) bool

Accepts checks if the content type is acceptable

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context struct

func New

func New(r *http.Request) *Context

New request context

func (*Context) Unmarshal

func (c *Context) Unmarshal(r *http.Request, in interface{}) error

Unmarshal the request body or parameters

Jump to

Keyboard shortcuts

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