summaryrefslogtreecommitdiff
path: root/std/http
AgeCommit message (Collapse)Author
2020-12-31fix(std/http): parsing of HTTP version header (#8902)Noxazer
2020-12-29fix(std/http): Don't expose ServerRequest::done as Deferred (#8919)Nayeem Rahman
2020-12-01feat(std/http): Add Cookie value validation (#8471)Yasser A.Idrissi
2020-11-26fix(std/http): prevent path traversal (#8474)sarahdenofiletrav
Fix path traversal problem when the request URI does not have a leading slash. The file server now returns HTTP 400 when requests lack the leading slash, and are not absolute URIs. (https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html).
2020-11-22feat(std/http): Validate cookie path value (#8457)Yasser A.Idrissi
2020-11-21refactor(std/http): Rename validateCookieName param name & JSDoc (#8451)Yasser A.Idrissi
2020-11-20test(std): make test output less noisy (#8445)Bartek Iwańczuk
This commit makes output of std/ tests less noisy by passing "--quiet" flag to Deno subprocesses run as part of test suite.
2020-11-19docs(std): add missing jsdoc comments to exported functions (#8442)William Perron
includes: - http/file_server.ts - testing/_diff.ts - testing/asserts.ts Relates to #7487
2020-11-18fix(std/http): fix error handling in the request iterator (#8365)lideming
If the request body is using chunked encoding, errors may be thrown in "request.finalize()". In this case, we should untrack and close the connection.
2020-11-17feat(std/http): Check if cookie property is valid (#7189)Yasser A.Idrissi
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2020-11-13fix(std/http): flush body chunks for HTTP chunked encoding (#8349)Mark Tiedemann
Fixes #8339
2020-10-27fix: path traversal in std/http/file_server.ts (#8134)Luca Casonato
2020-10-26rename(std/testing): rename assert*Contains to assert*Includes (#7951)Tim Reichen
This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes
2020-10-26fix(std/http/file_server): File server should ignore query params (#8116)uki00a
2020-10-22docs: fix command examples use outdated default file_server port (#8062)Max Drosdo.www
2020-10-04docs(std): version all imports in README (#7442)tokiedokie
Use $STD_VERSION in std/ README files to automatically display proper version.
2020-10-04chore(std/http): rename http_bench.ts -> bench.ts (#7509)tokiedokie
2020-10-04docs: end sentences with a period in markdown (#7813)Trivikram Kamat
2020-09-27feat(fmt): Sort named import and export specifiers (#7711)David Sherret
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-19chore: reenable disabled test in std/ (#7578)Bartek Iwańczuk
2020-09-18refactor: deno_fetch op crate (#7524)Bartek Iwańczuk
2020-09-17refactor: make fetch use op_fetch_read instead of op_read (#7529)Ryan Dahl
2020-09-14test(std/http): make tests runnable from any directory (#7441)Casper Beyer
This makes std/http tests runnable from any directory by spawning test processes in the module directory resolved from import.meta.url and resolving test data relative to the same module directory.
2020-08-31test(std): ensure mod.ts modules have a test coverage (#7264)Casper Beyer
2020-08-12feat(std/http): add --no-dir-listing flag to file_server (#6808)木杉
2020-08-12feat(std): added TLS serve abilities to file_server (#6962)Alberto Ricart
2020-07-26test(std): remove unstable from multiple tests (#6882)Trivikram Kamat
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-07-13fix(cli/js/web/url): Implement IPv4 hostname parsing (#6707)Nayeem Rahman
2020-07-10Fix for issue #6685: --allow-net=:8080 broken (#6698)KrisChambers
2020-07-09fix(std/http): properly return port 80 in _parseAddrFromStr (#6635)Evan Bertrand
2020-06-30Update std/http/cookie types to not require full ServerRequest object (#6577)Kitson Kelly
2020-06-29fix(std/http): Support ipv6 parsing (#5263)Oron Sharabi
2020-06-27fix(std/http): Catch errors on file_server response.send (#6285)Jim van der Voort
2020-06-25docs: replace delCookie with deleteCookie (#6467)Stanislav
2020-06-12refactor: Don't destructure the Deno namespace (#6268)Nayeem Rahman
2020-06-12make std deno-lint clean (#6240)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-06-09fix(cli/js/process): Strengthen socket types based on pipes (#4836)Nayeem Rahman
2020-06-09fix(http/server): flaky test on Windows (#6188)Marcos Casagrande
2020-06-08fix(std/http): Prevent crash on UnexpectedEof and InvalidData (#6155)Marcos Casagrande
2020-06-07refactor(std): remove testing dependencies from non-test code (#5838)Chris Knight
2020-06-07refactor(std/http): rename delCookie to deleteCookie (#6088)Tim Reichen
2020-06-05Rename abbreviated assertions in std/testing (#6118)Casper Beyer
2020-06-03fix(std/http): Don't use assert() for user input validation (#6092)Nayeem Rahman
2020-06-03fix(std/http/file_server): args handling only if invoked directly (#5989)matheus
2020-06-01fix(std/http): file server not closing files (#5952)simwipado
2020-06-01feat(std/http) support code 103 Early Hints (#6021)Yasser A.Idrissi
2020-05-31feat(std/http): add TooEarly status code (#5999)Voltra
As per [RFC 8470 5.2](https://tools.ietf.org/html/rfc8470#section-5.2)
2020-05-29fix: readTrailer didn't evaluate header names by case-insensitive (#4902)Yusuke Sakurai