# README
net/http/blademaster
项目简介
http 框架,带来如飞一般的体验。
# Functions
CORS returns the location middleware with default configuration.
Criticality is.
CSRF returns the csrf middleware to prevent invalid cross site request.
DefaultServer returns an Engine instance with the Recovery and Logger middleware already attached.
Logger is logger middleware.
NewClient new a http client.
NewRateLimiter return a ratelimit middleware.
NewServer returns a new blank Engine instance without any middleware attached.
NewTraceTransport NewTraceTransport.
Recovery returns a middleware that recovers from any panics and writes a 500 if there was one.
Trace is trace middleware.
# Structs
Client is http client.
ClientConfig is http client conf.
Context is the most important part.
CORSConfig represents all available options for the middleware.
Engine is the framework's instance, it contains the muxer, middleware and configuration settings.
MethodConfig is.
Param is a single URL parameter, consisting of a key and a value.
RateLimiter bbr middleware.
RouterGroup is used internally to configure router, a RouterGroup is associated with a prefix and an array of handlers (middleware).
ServerConfig is the bm server config model.
TraceTransport wraps a RoundTripper.
# Type aliases
HandlerFunc http request handler function.
Params is a Param-slice, as returned by the router.