Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endpoint operations #671

Open
1 task
malud opened this issue Jan 25, 2023 · 0 comments
Open
1 task

endpoint operations #671

malud opened this issue Jan 25, 2023 · 0 comments
Labels

Comments

@malud
Copy link
Collaborator

malud commented Jan 25, 2023

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 ?

@malud malud added the proposal label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant