MaxRequestsPerConnection¶
A validated maximum number of requests per keep-alive connection.
Must be at least 1. Use MakeMaxRequestsPerConnection to create:
match MakeMaxRequestsPerConnection(1000)
| let m: MaxRequestsPerConnection =>
ServerConfig("0.0.0.0", "80" where max_requests_per_connection' = m)
| let e: ValidationFailure =>
// handle error — value was 0
end
Type Alias For¶
- Constrained[USize val, _MaxRequestsPerConnectionValidator val] val