# Functions
No description provided by the author
CorsHandler 配置,可以传入自定义的header.
No description provided by the author
EnablePProf the standard HandlerFuncs from the net/http/pprof package with the provided gin.Engine.
InitRouter 创建一个激活常用配置的router 这里没有注入prometheus,因为不一定会使用.
No description provided by the author
RequestSizeLimiter returns a middleware that limits the size of request When a request is over the limit, the following will happen: * Error will be added to the context * Connection: close header will be set * Error 413 will be sent to the client (http.StatusRequestEntityTooLarge) * Current context will be aborted.
RouteRegister the standard HandlerFuncs from the net/http/pprof package with the provided gin.GrouterGroup.
# Constants
DefaultPrefix url prefix of pprof.