Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContextRequestIDKey context request id for context ContextRequestIDKey = "request_id" // HeaderXRequestIDKey http header request ID key HeaderXRequestIDKey = "X-Request-ID" )
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware ... CORS (Cross-Origin Resource Sharing)
func NoCache ¶
NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { gin.ResponseWriter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.