# Functions
BuildParams builds the request string for the http client.
Config creates and returns a ServerConfig object with default configurations.
ConfigFromMap creates and returns a ServerConfig object with given map and default configuration object.
Connect is a convenience method for sending CONNECT request.
ConnectBytes is a convenience method for sending CONNECT request, which retrieves and returns the result content as bytes and automatically closes response object.
ConnectContent is a convenience method for sending CONNECT request, which retrieves and returns the result content and automatically closes response object.
ConnectVar sends a CONNECT request, retrieves and converts the result content to specified pointer.
Delete is a convenience method for sending DELETE request.
DeleteBytes is a convenience method for sending DELETE request, which retrieves and returns the result content as bytes and automatically closes response object.
DeleteContent is a convenience method for sending DELETE request, which retrieves and returns the result content and automatically closes response object.
DeleteVar sends a DELETE request, retrieves and converts the result content to specified pointer.
DoRequest is a convenience method for sending custom http method request.
Get is a convenience method for sending GET request.
GetBytes is a convenience method for sending GET request, which retrieves and returns the result content as bytes and automatically closes response object.
GetContent is a convenience method for sending GET request, which retrieves and returns the result content and automatically closes response object.
GetCookie creates or retrieves a cookie object with given request.
GetServer creates and returns a server instance using given name and default configurations.
GetVar sends a GET request, retrieves and converts the result content to specified pointer.
Head is a convenience method for sending HEAD request.
HeadBytes is a convenience method for sending HEAD request, which retrieves and returns the result content as bytes and automatically closes response object.
HeadContent is a convenience method for sending HEAD request, which retrieves and returns the result content and automatically closes response object.
HeadVar sends a HEAD request, retrieves and converts the result content to specified pointer.
IsExitError checks if given error is an exit error of server.
MiddlewareClientTracing is a client middleware that enables tracing feature using standards of OpenTelemetry.
MiddlewareHandlerResponse is the default middleware handling handler response object and its error.
MiddlewareServerTracing is a serer middleware that enables tracing feature using standards of OpenTelemetry.
NewClient creates and returns a new HTTP client object.
NewConfig creates and returns a ServerConfig object with default configurations.
NewWebSocketClient New creates and returns a new WebSocketClient object.
Options is a convenience method for sending OPTIONS request.
OptionsBytes is a convenience method for sending OPTIONS request, which retrieves and returns the result content as bytes and automatically closes response object.
OptionsContent is a convenience method for sending OPTIONS request, which retrieves and returns the result content and automatically closes response object.
OptionsVar sends a OPTIONS request, retrieves and converts the result content to specified pointer.
Patch is a convenience method for sending PATCH request.
PatchBytes is a convenience method for sending PATCH request, which retrieves and returns the result content as bytes and automatically closes response object.
PatchContent is a convenience method for sending PATCH request, which retrieves and returns the result content and automatically closes response object.
PatchVar sends a PATCH request, retrieves and converts the result content to specified pointer.
Post is a convenience method for sending POST request.
PostBytes is a convenience method for sending POST request, which retrieves and returns the result content as bytes and automatically closes response object.
PostContent is a convenience method for sending POST request, which retrieves and returns the result content and automatically closes response object.
PostVar sends a POST request, retrieves and converts the result content to specified pointer.
Put is a convenience method for sending PUT request.
PutBytes is a convenience method for sending PUT request, which retrieves and returns the result content as bytes and automatically closes response object.
PutContent is a convenience method for sending PUT request, which retrieves and returns the result content and automatically closes response object.
PutVar sends a PUT request, retrieves and converts the result content to specified pointer.
RequestBytes is a convenience method for sending custom http method request, which retrieves and returns the result content as bytes and automatically closes response object.
RequestContent is a convenience method for sending custom http method request, which retrieves and returns the result content and automatically closes response object.
RequestFromCtx retrieves and returns the Request object from context.
RequestVar sends request using given HTTP method and data, retrieves converts the result to specified pointer.
RestartAllServer restarts all the servers of the process.
SetGraceful enables/disables the graceful reload feature for server, which is false in default.
ShutdownAllServer shuts down all servers of current process.
StartPProfServer starts and runs a new server for pprof.
Trace is a convenience method for sending TRACE request.
TraceBytes is a convenience method for sending TRACE request, which retrieves and returns the result content as bytes and automatically closes response object.
TraceContent is a convenience method for sending TRACE request, which retrieves and returns the result content and automatically closes response object.
TraceVar sends a TRACE request, retrieves and converts the result content to specified pointer.
Wait blocks to wait for all servers done.
WrapF is a helper function for wrapping http.HandlerFunc and returns a ghttp.HandlerFunc.
WrapH is a helper function for wrapping http.Handler and returns a ghttp.HandlerFunc.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated, please use UriTypeAllLower instead.
Deprecated, please use UriTypeCamel instead.
Deprecated, please use UriTypeDefault instead.
Deprecated, please use UriTypeFullName instead.
Method name to URI converting type, which converts name to its lower case.
Method name to URI converting type, which converts name to its camel case.
Method name to URI converting type, which converts name to its lower case and joins the words using char '-'.
Method name to URI converting type, which does no converting to the method name.
BinaryMessage denotes a binary data message.
CloseMessage denotes a close control message.
PingMessage denotes a ping control message.
PongMessage denotes a pong control message.
TextMessage denotes a text data message.
# Structs
Cookie for HTTP COOKIE management.
CORSOptions is the options for CORS feature.
No description provided by the author
Domain is used for route register for domains.
Request is the context object for a request.
Response is the http response manager.
ResponseWriter is the custom writer for http response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServerConfig is the HTTP Server configuration manager.
UploadFile wraps the multipart uploading file with more and convenient features.
WebSocket wraps the underlying websocket connection and provides convenient functions.
WebSocketClient wraps the underlying websocket client connection and provides convenient functions.
# Interfaces
Plugin is the interface for server plugin.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Session is actually a alias of gsession.Session, which is bound to a single request.
UploadFiles is array type for *UploadFile.