httpUtils

package
v0.0.0-...-2d2cc06 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

httpUtils provides functions and middlewares for working with http requests and responses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToReq

func AddUserToReq(next http.Handler) http.Handler

func LogRequest

func LogRequest(next http.Handler) http.Handler

func ServeStaticFile

func ServeStaticFile(resource string, w http.ResponseWriter, r *http.Request)

func SetCacheControl

func SetCacheControl(next http.Handler) http.Handler

func SetHTTPHeaders

func SetHTTPHeaders(next http.Handler) http.Handler

func SetMaxBytes

func SetMaxBytes(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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