-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
add handling for unset request types in endpoint #137
base: master
Are you sure you want to change the base?
Conversation
Please elaborate. There already exists |
So, at the moment, I see it as a matter of taste. But if you can give me a compelling argument, I might reconsider "my taste" :-) |
oh, it's just for ease of use, i needed a way to set all unused handlers to a 404 handler and setting all the other fields to my handler didn't occur to me for some reason only after making this 😭 but yea, its just so you can easily set a function to catch all unset handlers so you don't forget one or something. I guess it would be more useful if there were no nop and it would force you to handle all requests so that you don't have hidden behavior, for me at first I was expecting the main listener to catch this instead of the endpoint and I did not understand why it was a valid request but I didn't get any output, if this makes any sense. |
Yes, it makes total sense! You make a convincing consistency-argument here! My suggestion:
WDYT? Maybe we should even rename |
Sounds good. I'll get to changing it right away. |
added the requested changes, went for |
No description provided.