405 Method not allowed
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 81
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
hi!
maybe it would be better to send '405 Method not allowed', if the path is present in route but method not allowed.
I explain.
local server = httpd.new('127.0.0.1', 8089)
server:route({ path = '/', method = 'GET' }, http.testRequest)
curl -X POST "http://127.0.0.1:8089/" -v
< HTTP/1.1 404 Not found
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the route matching and HTTP response handling exercised by the shown server:route configuration and the curl POST request to /. Trace how a matching path with a disallowed method is classified, then verify that the completed behavior distinguishes it from an unknown path using a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100