# Functions
Default creates a frame instance with default middlewares.
New creates a frame instance without any default config.
WithALPN sets whether enable ALPN.
WithAltTransport sets which network library to use as an alternative transporter(need to be implemented by specific transporter).
WithAuthUserKey sets listening address.
WithAutoReloadRender sets the config of auto reload render.
WithBasePath sets basePath.Must be "/" prefix and suffix,If not the default concatenate "/".
No description provided by the author
No description provided by the author
WithDisablePreParseMultipartForm sets disablePreParseMultipartForm.
WithDisablePrintRoute sets whether disable debugPrintRoute If we don't set it, it will default to false.
WithExitWaitTime sets timeout for graceful shutdown.
WithGetOnly sets whether accept GET request only.
WithH2C sets whether enable H2C.
WithHandleMethodNotAllowed sets handleMethodNotAllowed.
WithHostPorts sets listening address.
WithIdleTimeout sets idle timeout.
WithKeepAlive sets Whether use long connection.
WithKeepAliveTimeout sets keep-alive timeout.
WithLayout sets listening address.
WithListenConfig sets listener config.
WithMaxKeepBodySize sets max size of request/response body to keep when recycled.
WithMaxRequestBodySize sets the limitation of request body size.
WithNetwork sets network.
WithOnAccept sets the callback function when a new connection is accepted but cannot receive data in netpoll.
WithOnConnect sets the onConnect function.
WithReadBufferSize sets the read buffer size which also limit the header size.
WithReadTimeout sets read timeout.
WithRedirectFixedPath sets redirectFixedPath.
WithRedirectTrailingSlash sets redirectTrailingSlash.
WithRegistry sets the registry and registry's info.
WithRemoveExtraSlash sets removeExtraSlash.
WithSenseClientDisconnection sets the ability to sense client disconnections.
WithStreamBody determines whether read body in stream or not.
WithTLS sets TLS config to start a tls server.
WithTraceLevel sets the level trace.
WithTracer adds tracer to server.
WithTransport sets which network library to use.
WithUnescapePathValues sets unescapePathValues.
WithUseRawPath sets useRawPath.
WithWriteTimeout sets write timeout.