package
0.0.0-20250204102022-b77c1431ca83
Repository: https://github.com/ngoctd314/common.git
Documentation: pkg.go.dev

# Functions

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
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
Unmarshal read body and Unmarshal it into T after read body, close it.
BaseContext optionally specifies a function that returns the base context for incoming requests on this server.
CheckRedirect specifies the policy for handling redirects.
ConnContext optionally specifies a function that modifies the context used for a new connection c.
ConnState specifies an optional callback function that is called when a client connection changes state.
DisableGeneralOptionsHandler, if true, passes "OPTIONS *" requests to the Handler, otherwise responds with 200 OK and Content-Length: 0.
Jar specifies the cookie jar.
MaxHeaderBytes controls the maximum number of bytes the server will read parsing the request header's keys and values, including the request line.
WithServerLogger allow use your own logger style if it is not set or equal to nil, slog.Default is used.
TLSConfig optionally provides a TLS configuration for use by ServeTLS and ListenAndServeTLS.
TLSNextProto optionally specifies a function to take over ownership of the provided TLS connection when an ALPN protocol upgrade has occurred.
Transport specifies the mechanism by which individual HTTP requests are made.

# Constants

No description provided by the author

# Structs

ResponseBody represent common format response to client.
No description provided by the author

# Interfaces

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

# Type aliases

LoggerFunc is a bridge between Logger and any third party logger.