httpx

package
v0.0.0-...-ad95247 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexToInviteTokenDecodeHook

func HexToInviteTokenDecodeHook() mapstructure.DecodeHookFunc

func IsHtmxRequest

func IsHtmxRequest(r *http.Request) bool

func NewCookie

func NewCookie[T ~string](config config.CookieConfig, name string, value T) *http.Cookie

func ParseForm

func ParseForm[T any](req *http.Request, opts ...ParseOption) (*T, error)

func Redirect

func Redirect(writer http.ResponseWriter, req *http.Request, url string, status int)

func StringToUUIDDecodeHook

func StringToUUIDDecodeHook() mapstructure.DecodeHookFunc

func WriteTempl

func WriteTempl(writer http.ResponseWriter, req *http.Request, c templ.Component, options ...func(*templ.ComponentHandler))

Types

type ParseOption

type ParseOption func(cfg *mapstructure.DecoderConfig)

func WithDecoderHooks

func WithDecoderHooks(hooks ...mapstructure.DecodeHookFunc) ParseOption

Jump to

Keyboard shortcuts

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