-
Notifications
You must be signed in to change notification settings - Fork 2
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
The server only handles GET
and OPTIONS
requests
#13
Comments
My first thought is to put control entirely in users' hands by structuring the content directory root to contain subdirectories for each method you want to handle:
There wouldn't be any difference between the verbs as far as Operator is concerned, it's just a routing mechanism. It'd be up to you to follow how the HTTP spec says each method should be used (or not). This would probably only make sense for This seems easy to implement, but that doesn't mean it'll be the right approach. This requires more design work. |
A totally different approach would be to route all verbs to the same content files, and add the HTTP method to This could produce strange behavior with static files or executables/templates that don't check the verb. For example, UPDATE: I've since veered sharply away from this. It was never a very good idea. |
#12 has been closed, but without including the request body or HTTP method in request data (neither are useful as long as Operator only handles Both are in scope for this issue, though. For implementation notes, see #12 (comment). |
GET
requests
GET
requestsGET
and OPTIONS
requests
#96 added basic support for It'll probably also be a good idea to implement new CLI subcommands to mirror each HTTP method ( |
I'll probably open an issue specifically about request body handling after exploring more of the design space for this stuff, but in the meantime don't lose track of #12 (comment). |
Operator should support other HTTP methods. This goes hand-in-hand with #12.
The text was updated successfully, but these errors were encountered: