deno/ext/http
Ben Noordhuis 16ea39ee48
fix(ext/http): fortify "is websocket?" check (#12179)
Check for expected headers more rigorously and check that it's a
HTTP/1.1 GET request. The logic mirrors what Deno Deploy and the
tungstenite crate do.

The presence of "Sec-Websocket-Version: 13" is now also enforced.
I don't expect that to break anything: conforming clients already
send it and tungstenite can't talk to older clients anyway.

The new code is more efficient due to heap-allocating less and aligns
more closely with the checks in ext/http/01_http.js now.
2021-09-25 10:02:26 +02:00
..
01_http.js refactor: use Deno.core.tryClose (#11980) 2021-09-11 02:54:37 +02:00
Cargo.toml chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00
lib.rs fix(ext/http): fortify "is websocket?" check (#12179) 2021-09-25 10:02:26 +02:00
README.md chore: add README to ext/http/ (#11958) 2021-09-08 20:48:28 +02:00

deno_http

This crate implements server-side HTTP based on primitives from the Fetch API.