Closed sntran closed 1 year ago
It seems http lib doesn't support statusText or something like this, so They just use the custom status, not statusText.
https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText#value
Note that HTTP/2 does not support status messages.
https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText#value
Note that HTTP/2 does not support status messages.
This assumes that Response
is strictly for HTTP (and HTTP/2).
For example, I have an NNTP library that uses Response
as well, and if Response
class has statusText
, I don't see a reason not to use it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
I think this should not be stale 🤔
This isnt possible due to https://github.com/hyperium/http/issues/345#issuecomment-558763905
Closing due to the aforementioned limitation.
Describe the issue
A
Response
with customstatusText
does not actually send thatstatusText
to the client.Steps to reproduce
deno run --allow-net
the following sample web server with small modification to the returningResponse
:Expected Result
When
curl -I "http://localhost:8080"
, a211 Custom
status is returned.Actual Result
211 <none>
is returned.Environment
OS: Mac 12.3 Deno: 1.22