http

package
v0.0.0-...-ab910ad Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogMiddleware

func AccessLogMiddleware(next echo.HandlerFunc) echo.HandlerFunc

AccessLogMiddleware logs access details

func EnsureHtmxHeadersMiddleware

func EnsureHtmxHeadersMiddleware() echo.MiddlewareFunc

EnsureHtmxHeaders checks if the request contains the HTMX headers

func ErrorHandlerMiddleware

func ErrorHandlerMiddleware(next echo.HandlerFunc) echo.HandlerFunc

ErrorHandlerMiddleware logs the error and client details, then sends an appropriate HTTP response

func SetCacheControl

func SetCacheControl(next echo.HandlerFunc) echo.HandlerFunc

func ValidateTargetNamesMiddleware

func ValidateTargetNamesMiddleware(validTargets map[string]bool) echo.MiddlewareFunc

ValidateTargetNames checks if the request contains a valid target name

func ValidateTriggerNamesMiddleware

func ValidateTriggerNamesMiddleware(validTriggers map[string]bool) echo.MiddlewareFunc

ValidateTriggerNames checks if the request contains a valid trigger name

Types

type Request

type Request struct {
	*htmx.Request
}

type Response

type Response struct {
	*htmx.Response
}

Jump to

Keyboard shortcuts

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