httprequest

package
v0.0.0-...-7b6d715 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package httprequest GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithPathValueGetter

func ContextWithPathValueGetter(ctx context.Context, p PathValueGetter) context.Context

func WithHeader

func WithHeader(rc io.ReadCloser, header http.Header) io.ReadCloser

Types

type Params

type Params map[string]string

func (Params) PathValue

func (d Params) PathValue(k string) string

func (*Params) RuntimeDoc

func (*Params) RuntimeDoc(names ...string) ([]string, bool)

type PathValueGetter

type PathValueGetter interface {
	PathValue(k string) string
}

func PathValueGetterFromContext

func PathValueGetterFromContext(ctx context.Context) PathValueGetter

type Request

type Request interface {
	Context() context.Context
	Method() string
	Path() string
	Header() http.Header
	Values(in string, name string) []string
	Body() io.ReadCloser
	Underlying() *http.Request
}

func From

func From(r *http.Request) Request

Jump to

Keyboard shortcuts

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