Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an option for the request package.
type OptionFunc ¶
type OptionFunc func(*options)
OptionFunc is a function that implements the Option interface.
func WithByteLimitReader ¶
func WithByteLimitReader(w http.ResponseWriter) OptionFunc
WithByteLimitReader sets the byteReadLimiter option which limits the number of bytes that can be read from the request body to the default value of 1MB.
Click to show internal directories.
Click to hide internal directories.