Commit 0b0d37e
committed
A few issue fixes
Response headers were still being sent even after the Response->respond() method was called.
Problem: It was causing an error if using echo in the user code.
Solution: Updated Response->respond() method to exit after the response is sent causing the execution to end immidieately for a given request.
Some servers are not supporting HTTP Methods except for GET and POST
Problem: Need a way to send PUT, PATCH and DELETE as they are commonly used Http Methods
Solution: Supported a header X-HTTP-METHOD-OVERRIDE whose value can be the HTTP method you need to send. This can be achieved using http POST request too.# On branch master1 parent eac9deb commit 0b0d37e
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
0 commit comments