httputil

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 8 Imported by: 2

README

httputil

Adapted from https://github.com/SiaFoundation/jape but abstracted to be framework-agnostic.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestContext

type RequestContext struct {
	context.Context
	Request  *http.Request
	Response http.ResponseWriter
}

func (RequestContext) Check

func (r RequestContext) Check(msg string, err error) error

func (RequestContext) Decode

func (r RequestContext) Decode(v interface{}) error

func (RequestContext) DecodeForm

func (r RequestContext) DecodeForm(key string, v interface{}) error

func (RequestContext) Encode

func (r RequestContext) Encode(v interface{})

func (RequestContext) Error

func (r RequestContext) Error(err error, status int) error

Jump to

Keyboard shortcuts

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