Http-server: methods post, remove???

Created on 19 Oct 2015  路  4Comments  路  Source: http-party/http-server

I'm a beginner, please help me)
How to fix it - POST http://localhost:8000/clients/clients.json 405 (Method Not Allowed)?
With GET all good.

Most helpful comment

Would it be a good idea to pass on POST (and other request types) if there is the proxy option set?

All 4 comments

@PrDmiter This is a simple/basic read-only server. It doesn't support POST methods (there's no logic to handle it).

Thank! I realized this, so express studied and wrote it himself.

Would it be a good idea to pass on POST (and other request types) if there is the proxy option set?

I agree with @andreieftimie. Helps us with mock data. I think it does not need to do much to pass through either.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiyinyiyong picture jiyinyiyong  路  6Comments

thornjad picture thornjad  路  5Comments

lacivert picture lacivert  路  3Comments

JonFranchi picture JonFranchi  路  6Comments

dKab picture dKab  路  7Comments