Categorygithub.com/oarkflow/frame
modulepackage
0.0.69
Repository: https://github.com/oarkflow/frame.git
Documentation: pkg.go.dev

# README

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ClientIPWithOption used to generate custom ClientIP function and set by engine.SetClientIPFunc.
No description provided by the author
IsMethodSafe reports whether the HTTP method is considered safe.
NewContext make a pure Context without any http request/response information Set the Request filed before use it for handlers.
NewPathSlashesStripper returns path rewriter, which strips slashesCount leading slashes from the path.
NewVHostPathRewriter returns path rewriter, which strips slashesCount leading slashes from the path and prepends the path with request's host, thus simplifying virtual hosting for static files.
ParseByteRange parses 'Range: bytes=...' header value.
ServeFile returns HTTP response containing compressed file contents from the given path.
ServeFileUncompressed returns HTTP response containing file contents from the given path.
SetClientIPFunc sets ClientIP function implementation to get ClientIP.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Name and Version info of this framework, used for statistics and debug.
Name and Version info of this framework, used for statistics and debug.

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FS represents settings for request handler serving static files from the local filesystem.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
HandlersChain defines a HandlerFunc array.
HijackHandler must process the hijacked connection c.
PathRewriteFunc must return new request path based on arbitrary context info such as context.Path().