summaryrefslogtreecommitdiff
path: root/std/http
AgeCommit message (Collapse)Author
2020-02-23fix: [ws] sock shouldn't throw eof error when failed to read frame (#4083)Yusuke Sakurai
2020-02-21refactor: remove unneeded ErrorKinds (#3936)Bartek Iwańczuk
2020-02-19Enable TS strict mode by default (#3899)Maximilien Mellen
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-13fix: appended CRLF to end of trailer headers (#3989)Yusuke Sakurai
2020-02-11fix(file_server): don't crash on "%" pathname (#3953)木杉
2020-02-11refactor: rewrite tests in std/ to use Deno.test (#3930)Bartek Iwańczuk
2020-02-10feat: Support HTTP trailer headers for response (#3938)Yusuke Sakurai
2020-02-08reenable server tests (#3928)Bartek Iwańczuk
2020-02-08remove non-null assertion operator from std (part2) (#3927)Yusuke Sakurai
2020-02-07remove non-null assertion operator from std (part1) (#3900)Yusuke Sakurai
2020-02-04std/http/server::serve aligned to std/http/server::serveTLS (#3881)Kitson Kelly
2020-01-31chore: remove std/installer, port installer tests to Rust (#3843)Bartek Iwańczuk
2020-01-30feat: deno install in Rust (#3806)Bartek Iwańczuk
//std/installer couldn't be removed due to bug, but it's now deprecated.
2020-01-27dx: descriptive permission errors (#3808)Bartek Iwańczuk
Before: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ``` After: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ```
2020-01-24fix(std/http): update listenAndServe argument type (#3775)Carl Rosell
allow same argument type for `listenAndServe` as `serve`. fixes: #3774
2020-01-21change copyrights from 2019 to 2020 (#3733)Takashi Idobe
2020-01-18stabilize net Addr (#3709)Bartek Iwańczuk
Co-authored-by: xiaoxintang <15707971810@163.com>
2020-01-18rename dial to connect and dialTLS to connectTLS (#3710)Bartek Iwańczuk
2020-01-17std/http: allow response body to be string (#3705)Kevin (Kun) "Kassimo" Qian
2020-01-15Revert "feat(flags): script arguments come after '--'" (#3681)Ry Dahl
Due to complaints about ergonomics and because it breaks shebang on linux. This reverts commit 2d5457df15d8c4a81362bb2d185b5c6013faa1d8. BREAKING CHANGE
2020-01-09feat: Deno.args now does not include script (#3628)Ry Dahl
Previously Deno.args was ["script.js", "arg1", "arg2"] Now it is just ["arg1", "arg2"] BREAKING CHANGE
2020-01-08feat(flags): script arguments come after '--' (#3621)Ry Dahl
2020-01-02Happy new year! (#3578)Ry Dahl
2020-01-02feat(std/http): make req.body a Reader (#3575)Kevin (Kun) "Kassimo" Qian
2019-12-20feat: Add missing mod.ts files in std (#3509)Nayeem Rahman
std/archive/tar.ts: - Remove FileReader. - Remove FileWriter. std/encoding/csv.ts: - ExtendedParseOptions -> ParseOptions - HeaderOption -> HeaderOptions - ParseOptions -> ReadOptions - readAll() -> readMatrix() std/encoding/yaml.ts: - DumpOptions -> StringifyOptions std/fmt/colors.ts: - getEnabled() -> getColorEnabled() - setEnabled() -> setColorEnabled() std/testing/mod.ts: - Re-export sibling modules.
2019-12-14Support utf8 in file_server (#3495)木杉
2019-12-14feat(file_server): add help & switch to flags (#3489)木杉
2019-12-12file_server: get file and fileInfo concurrently (#3486)Weijia Wang
2019-12-12fix: file_server swallowing permission errors (#3467)木杉
2019-12-12benchmark: align deno_http and node_http response (#3484)Kevin (Kun) "Kassimo" Qian
2019-12-12fix(std/http): close connection on .respond() error (#3475)Kevin (Kun) "Kassimo" Qian
2019-12-10fix: decoding uri in file_server (#3187)AleksandrukTad
2019-12-02better html for file_server (#3423)木杉
2019-11-26refactor: reorganize flags (#3389)Ry Dahl
- Remove ability to specify run arguments like `--allow-net` after the script argument. It's too hacky to make work with clap. - Remove `--v8-options`, instead use `--v8-flags=--help` - Give more descriptive names to unit tests in flags.rs - Assume argv and subcommand into DenoFlags struct so the output of flags module is only DenoFlags rather than the tuple (subcommand, flags, argv). - Improve CLI help text - Make `deno run` specific args like `--allow-net` only show up in 'deno help run' instead of as global flags in `deno help`. - Removes `deno version` to simplify our implementation and be closer to clap defaults. `deno -V` now only shows Deno's version and not V8's nor TypeScript. `Deno.versions` can be used to see that information. - Prevent clap from auto-detecting terminal width and attempting to wrap text.
2019-11-18chore: improve examples (#3377)Ry Dahl
2019-11-16Use futures 0.3 API (#3358)Bartek Iwańczuk
2019-11-16fix: std/datetime toIMF bug (#3357)Leo Chandra
2019-11-13Update to TypeScript 3.7 (#3275)Kitson Kelly
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273
2019-11-09net: Check for closing status when iterating Listener (#3309)Nayeem Rahman
std/http/server.ts: Use listener.next() instead of listener.accept()
2019-11-08Add jsdoc for std/http/http_status.tsRyan Dahl
The website documentation now supports enums https://github.com/denoland/deno_website2/commit/6f4fb0f5a3068daa1841bc4d2774fecf0added1d
2019-11-07Fix jsdoc in std/http/server.ts (#3284)Ry Dahl
2019-11-06Allow http server to take { hostname, port } argument (#3233)Liam Perlaki
2019-11-04Remove tsconfig files - they are not part of build process (#3262)Ry Dahl
2019-11-04std/http: add serveTLS and listenAndServeTLS (#3257)Kevin (Kun) "Kassimo" Qian
2019-10-28Use top-level for-await in various places (#3217)Andy Hayden
2019-10-27feat: top-level-for-await (#3212)Andy Hayden
2019-10-19Re-enable some tests (#3154)Nick Stott
Ref #3095
2019-10-16std: Move fs/path to the top-level (#3100)Nayeem Rahman
2019-10-09Run deno_std tests in github actionsRyan Dahl
2019-10-09Move everything into std subdirRyan Dahl