package
0.0.0-20230101183712-202847b4b89b
Repository: https://github.com/corestoreio/csfw.git
Documentation: pkg.go.dev

# Functions

AcceptsContentType checks if a request requests a specific content type.
AcceptsJSON returns true if the request requests JSON as a return-format.
InIPRange returns a function which can check if a requests real IP address is available in the provided list of IP ranges.
NotInIPRange returns a function which can check if a requests real IP address is NOT available in the provided list of IP ranges.
RealIP extracts the remote address from a request and takes care of different headers in which an IP address can be stored.

# Constants

HeaderIDKeyName defines the name of the header used to transmit the request ID.
IPForwarded* must be set as an option to function RealIP() to specify if you trust the forwarded headers.
IPForwarded* must be set as an option to function RealIP() to specify if you trust the forwarded headers.

# Variables

ForwardedIPHeaders contains a list of available headers which might contain the client IP address.

# Structs

ID represents a middleware for request Id generation and adding the ID to the header.