Skip to content

MaxRequestsPerConnection

[Source]

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 MaxRequestsPerConnection is
  Constrained[USize val, _MaxRequestsPerConnectionValidator val] val

Type Alias For