Limits
type Limits struct{}Limits handles HTTP limits.
Deprecated: limits are enforced at a different level within the platform. The values returned by the Max.+Len() methods have been preserved, but are no longer meaningful. Further information can be found at https://docs.fastly.com/products/network-services-resource-limits#request-and-response-limits
Methods
func (limits *Limits) MaxHeaderNameLen() intMaxHeaderNameLen gets the header name limit Deprecated: the limit is not enforced, buffer sizing is adaptive.
Returns
func (limits *Limits) MaxHeaderValueLen() intMaxHeaderValueLen gets the header value limit Deprecated: the limit is not enforced, buffer sizing is adaptive.
Returns
func (limits *Limits) MaxMethodLen() intMaxMethodLen gets the request method limit Deprecated: the limit is not enforced, buffer sizing is adaptive.
Returns
func (limits *Limits) MaxURLLen() intMaxURLLen gets the request URL limit Deprecated: the limit is not enforced, buffer sizing is adaptive.
Returns
func (limits *Limits) SetMaxHeaderNameLen(_ int)SetMaxHeaderNameLen sets the header name limit Deprecated: the limit is not enforced, buffer sizing is adaptive.
Parameters
- _: int
func (limits *Limits) SetMaxHeaderValueLen(_ int)SetMaxHeaderValueLen sets the header value limit Deprecated: the limit is not enforced, buffer sizing is adaptive.
Parameters
- _: int
func (limits *Limits) SetMaxMethodLen(_ int)SetMaxMethodLen sets the request method limit Deprecated: the limit is not reset, buffer sizing is adaptive.
Parameters
- _: int
func (limits *Limits) SetMaxURLLen(_ int)SetMaxURLLen sets the request URL limit Deprecated: the limit is not reset, buffer sizing is adaptive.
Parameters
- _: int