couper
couper copied to clipboard
endpoint operations
Currently an endpoint will match all requests by path, no matter what method the client uses.
endpoint "/**" {
proxy {
backend = "foo"
}
}
This could be refined with a second endpoint label:
endpoint "/**" "POST" {
response {
status = 405
}
}
But this would be the first block type which will have multiple labels with different meanings. For example the error_handler
have multiple labels but its all the same: a error type.
Therefore we could think about an endpoint
attribute (list) to refine the endpoints mux registration by method.
- [ ] checks and mux registration should be case-insensitive
So how a endpoint configuration would look like for multiple methods ?