httpserver

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package httpserver owns deploy's single configured Gin engine.

The package exists so that every Core process serves from one router with one security posture. Callers may rely on NewEngine returning a caller-owned engine that applies the restrictive Content-Security-Policy and the accompanying hardening headers to every response, that disables trailing-slash and fixed-path redirects, and that reports an unsupported method rather than falling through to a not-found. Components mount routes onto that engine through gin.IRouter and never build an engine, a standard-library mux, or a catch-all proxy of their own.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine() *gin.Engine

NewEngine returns the caller-owned router shared by every Core HTTP component. Components mount routes through gin.IRouter and never create an engine, standard-library mux, or catch-all proxy of their own.

Types

This section is empty.

Jump to

Keyboard shortcuts

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