Comments (6)
I think it should just send a default 501 response
The 501 (Not Implemented) status code indicates that the server does
not support the functionality required to fulfill the request. This
is the appropriate response when the server does not recognize the
request method and is not capable of supporting it for any resource. A 501 response is cacheable by default; i.e., unless otherwise
indicated by the method definition or explicit cache controls (see
Section 4.2.2 of [RFC7234]).
from raxx.
@lasseebert Fixed in Ace with this commit CrowdHailer/Ace@6a45644
Will release 0.18.7
soon
from raxx.
I don't have an answer ready for this issue.
These logs come from the parser in Ace, because each connection is isolated there is no harm in these logs but in that case they should not keep spamming your logs.
In my opinion there are two options here.
- have Ace automatically return a default 400 response for any parser failure, it currently does this for several other kinds of "bad request"
- expose these methods to the Raxx app and let user handle them as they want. This has problems because turning unknown methods to atoms opens up an attack vector to flood the atom table.
My preference is for 1 because it is simpler, and it handles the case you need right now.
from raxx.
@CrowdHailer 1. works for me too. I have not yet looked at Ace source code, but please let me know if you would like me to take a go on it ;)
from raxx.
from raxx.
Awesome, thanks!
from raxx.
Related Issues (20)
- Add middleware proof of concept HOT 10
- Remove handle_request from Raxx.Server behaviour HOT 2
- Should setting a body on a GET request raise an error. HOT 1
- Benchmark different Raxx.Stack state structures and switch to the fastest one HOT 1
- Add a Middleware-aware Router HOT 5
- make `use Raxx.Middleware` a thing HOT 2
- Feature Proposal: Raxx.Context HOT 3
- allow to set multiple cookies HOT 5
- New 1.0 roadmap HOT 11
- Remove eex_html dep? HOT 5
- Incorrect parsing of request when path looks like an absolute url HOT 1
- Raxx.Session 1.0 Roadmap
- Raxx.View 1.0 Roadmap
- Raxx.Logger 1.0 Roadmap
- can we have both server streaming and simple request/response in same module?
- Fix specs, to show that Raxx.data can contain iodata
- Gleam HOT 6
- Raxx.View add a way to have page metadata in the layout
- Project status? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raxx.