Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReqWrap ¶
NewReqWrap creates a new defaultResWrap instance and captures the request body, enforcing a maximum size to prevent excessive memory usage. If the request body is larger than the maximum size, an error is returned.
Parameters:
- r: The original http.Request.
Returns:
- *defaultReqWrap: A new defaultReqWrap instance.
- error: Any error encountered during body reading.
func NewResWrap ¶
func NewResWrap(w http.ResponseWriter) *defaultResWrap
NewResWrap creates a new &defaultResWrap instance wrapping the given http.ResponseWriter.
Parameters:
- w: The original http.ResponseWriter.
Returns:
- *defaultResWrap: A new defaultResWrap instance.
Types ¶
Click to show internal directories.
Click to hide internal directories.