ud2
159060b15c
perf: repoint internal imports to single-export files ( #3537 )
2023-08-14 16:08:42 +09:00
oli
c34d441374
fix(http/cookie_map): add maxAge to set/delete options ( #3524 )
2023-08-11 18:03:20 +09:00
Yoshiya Hinosawa
2fc511fc42
fix(http): fix handling of string port number ( #3499 )
2023-07-24 10:39:11 +09:00
Lino Le Van
1d489cf207
BREAKING(http/server): deprecate serve and serveTls ( #3381 )
2023-07-21 12:29:01 +09:00
Lino Le Van
e0753abe0c
refactor(http): simplify getSetCookies ( #3491 )
2023-07-18 10:29:27 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts
to std/assert
( #3445 )
2023-07-13 16:04:30 +09:00
Yoshiya Hinosawa
2acd2bb2fc
chore: fix type errors caused by canary ( #3477 )
2023-07-04 13:57:05 +09:00
Kitson Kelly
7cdd55a083
feat: add http/user_agent ( #3387 )
2023-07-04 11:39:46 +09:00
Yoshiya Hinosawa
242746a479
test(http): re-enable 'serveDirIndex TLS' test on mac ( #3471 )
2023-06-29 14:05:58 +09:00
Martin Fischer
a5b1d80736
chore: fix typos ( #3458 )
...
The typos were found with the typos[1] spell checker. That spell
checker will be incorporated into the CI in a followup PR.
[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
denobot
b7e6dc0914
0.192.0 ( #3449 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-06-15 23:22:00 +02:00
Chocobo1
8bd34c3a45
fix(http/file_server): resolve empty subdir correctly on Windows ( #3439 )
2023-06-14 16:37:53 +09:00
Chocobo1
bdfacdd721
fix(http/file_server): use platform specific resolve
( #3424 )
2023-06-06 14:00:05 +09:00
David Luis
2d9dd290f0
BREAKING(csv,http,path): remove deprecated APIs ( #3418 )
2023-06-01 23:13:50 +09:00
Bartek Iwańczuk
63f57385b5
chore: remove ts-ignores ( #3405 )
2023-05-26 08:36:39 +03:00
denobot
bde4acaa29
0.189.0 ( #3399 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-25 00:17:41 +02:00
Yoshiya Hinosawa
31c07ab89b
test(http): update cert error assertions ( #3383 )
2023-05-17 20:33:21 +09:00
ayame113
f7357c058c
fix(http/file_server): dealing with dir listing view that contain system files ( #3371 )
2023-05-10 15:15:03 +09:00
ayame113
28d2dd2698
docs(http/file_server): add module documentation ( #3368 )
2023-05-10 14:27:25 +09:00
Yoshiya Hinosawa
b781d630ec
refactor(http/file_server): use utils from std ( #3366 )
2023-05-07 15:48:39 +09:00
ayame113
c9af8416de
chore(http/file_server): remove unnecessary Date header generation ( #3364 )
2023-05-06 17:58:27 +09:00
ayame113
163a902a97
perf(http/file_server): read fileinfo in parallel ( #3363 )
2023-05-06 17:09:07 +09:00
ayame113
6e8ee3ceff
fix(http/file_server): redirect non-canonical URL to canonical URL ( #3362 )
2023-05-06 16:28:27 +09:00
David Luis
9c6532915a
fix(http/server_sent_event): fix Uncaught TypeError if created without optional EventInit ( #3356 )
2023-05-04 14:59:29 +09:00
ayame113
42a3a80ec4
fix(http/file_server): fix Range
header handling ( #3354 )
2023-05-04 13:58:13 +09:00
Kitson Kelly
26cc265e26
feat(http): add HTTP_METHODS, HttpMethod, and isHttpMethod ( #3309 )
2023-05-03 17:38:24 +09:00
vwkd
1d0b8127a5
docs(http): add missing default values for ServeDir
options of file_server
( #3349 )
2023-05-02 14:24:44 +09:00
tetraphobia
aa57bf337b
fix(http/server): flaky 'address in use' error ( #3333 )
2023-04-28 21:42:06 +09:00
ayame113
0f28d392e3
perf(http/file_server): avoid calculating Content-Type when 304 Not Modified response ( #3323 )
2023-04-19 15:42:33 +09:00
ayame113
30d18674ab
fix(http): move deno deploy specific logic from etag.ts
to file_server.ts
( #3316 )
2023-04-18 17:07:28 +09:00
ayame113
f5ba1edf7d
fix(http/file_server.ts): respond to Range requests with correct byte length ( #3319 )
2023-04-18 16:34:51 +09:00
Yoshiya Hinosawa
a21550c844
docs(http): fix default etag algorithm ( #3314 )
2023-04-13 18:43:43 +09:00
Kitson Kelly
016b452409
feat: add http/etag ( #3245 )
2023-04-12 20:51:19 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks ( #3263 )
2023-03-18 21:36:00 +09:00
Kitson Kelly
1c8cbbcab0
feat(http): add http/server_sent_event ( #3239 )
2023-03-14 15:29:44 +09:00
Tiago Gimenes
4b091f695d
fix(http/cookie): accept cookies with value containing = character ( #3152 )
2023-03-06 16:55:42 +09:00
Andreu Botella
da413bdac8
fix(http/file_server): redirect directory URLs that don't end with a slash ( #3220 )
2023-03-01 23:50:58 +09:00
ayame113
6bce2b49da
feat(http/file_server): etag value falls back to DENO_DEPLOYMENT_ID
if fileInfo.mtime
is not available ( #3186 )
2023-02-14 16:47:38 +09:00
Yoshiya Hinosawa
666f5dac0a
test(http): make file_server_test less flaky ( #3183 )
2023-02-13 13:26:27 +09:00
Roj
a506d22341
docs(http/file_server): headers are added to responses, not requests ( #3139 )
2023-01-29 15:41:28 +09:00
ayame113
b4239898d6
chore: update copyright header ( #3082 )
2023-01-03 19:47:44 +09:00
Asher Gomez
75bd5657d6
refactor(crypto): single-export files ( #3065 )
2022-12-28 17:42:55 +09:00
Lino Le Van
5bb2db62d6
feat(http): add --header option to file_server ( #2977 )
2022-12-27 13:43:04 +09:00
Yoshiya Hinosawa
c122c27edf
test(http): fix test case of http2 stream error ( #3034 )
2022-12-21 22:59:14 +09:00
Arnau Orriols
f7ed763119
fix(http): prevent downstream connections from getting closed when the response stream throws an error ( #3008 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-12-19 13:01:18 +01:00
Asher Gomez
c99bd33332
feat(datetime): single-export files ( #3007 )
2022-12-19 19:24:48 +09:00
Asher Gomez
fda52ca45b
feat(media_types): single-export files ( #3001 )
2022-12-19 19:02:14 +09:00
Yoshiya Hinosawa
01ec1428a7
chore: update Deno.Command usages ( #2997 )
2022-12-13 17:49:34 +09:00
Asher Gomez
c78061eef3
refactor: replace String.prototype.substr()
with String.prototype.slice()
( #2993 )
2022-12-12 15:21:59 +09:00
Asher Gomez
6c2e01e6b8
refactor: replace use of Deno.spawnChild
and Deno.run
with Deno.Command
( #2912 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-11-30 14:12:34 +09:00
Asher Gomez
5dabeb2d91
refactor(streams): move to single-export files ( #2957 )
2022-11-29 08:55:38 -05:00
Aleksandr Hovhannisyan
f04499970b
docs(cookie): clarify properties and their usage ( #2935 )
2022-11-25 15:01:24 -05:00
Leo Kettmeir
aba5017d43
docs: reorganize docs ( #2658 )
2022-11-25 12:40:23 +01:00
Yoshiya Hinosawa
1d04b7dafd
feat(http/cookie): allow number type for expires param ( #2932 )
2022-11-24 01:43:35 +09:00
Simon Knott
bba790ecd4
fix(http/cookie): wording for cookie value validation error ( #2931 )
2022-11-23 22:45:33 +09:00
Asher Gomez
b72d3eb42a
refactor: replace Deno.spawn
with Deno.Command
( #2886 )
2022-11-15 15:00:59 +09:00
木杉
cd108d5435
feat(http/file_server): add -v, --version option ( #2868 )
2022-11-11 14:08:35 +09:00
Asher Gomez
792f1334fe
refactor: use _util/asserts.ts
for non-test code ( #2857 )
2022-11-10 16:28:20 +09:00
Asher Gomez
4de657fc5b
feat(crypto): createHash
utility ( #2805 )
2022-10-25 15:48:13 -04:00
Asher Gomez
964ae5bcb6
refactor(http): use hashing functions from std/crypto
( #2799 )
2022-10-24 14:43:54 +09:00
Asher Gomez
e00830ae5f
chore(http/file_server): remove transform stream for partial content response ( #2794 )
...
remove: transform stream in partial response
2022-10-21 17:34:59 -04:00
Asher Gomez
c35b4fb4f8
refactor(http): createCommonResponse
internal utility ( #2773 )
2022-10-14 18:32:29 +09:00
ayame113
6b04b730b1
chore: Avoid using rid-based filesystem functions ( #2763 )
2022-10-10 10:07:24 -04:00
Asher Gomez
059905852b
chore(http/file_server): simplify partial-content response stream ( #2758 )
...
simplify partial content response stream
2022-10-07 11:39:52 -04:00
Khaled Sakr
385511bc43
fix(http): remove unnecessary delay when closing server ( #2732 )
2022-10-04 11:22:56 -04:00
Yoshiya Hinosawa
a0a79f1e3f
refactor(http/file_server): simplify normalizeURL util ( #2739 )
2022-10-04 15:35:46 +09:00
Yoshiya Hinosawa
b161285109
feat(http/file_server): add showIndex
option to serveDir ( #2738 )
2022-10-03 20:09:09 +09:00
Asher Gomez
4984358b15
chore(http): remove deprecated APIs ( #2712 )
2022-09-29 11:25:18 -04:00
Jeong, Heon
e3d8ceb6ee
fix(http/file_server): handles path with reserved char ( #2675 )
...
Current implementation don't escape some reserved characters, which
causing the browser to consider certain part is not the file path.
2022-09-29 11:02:43 -04:00
Asher Gomez
b555d43e6b
fix(http): serve
swallows errors when Response.body
has already been consumed ( #2702 )
2022-09-28 11:15:52 -04:00
Yoshiya Hinosawa
a08e42db01
fix(http/file_server): serveFile returns 404 when the path is directory ( #2659 )
2022-09-15 10:34:22 -04:00
Tim Reichen
2f7713a164
chore(tools): add deprecation check ( #2613 )
2022-09-15 16:06:04 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void
and Promise<void>
return types ( #2550 )
2022-08-24 10:21:57 +09:00
Kitson Kelly
d3ee523011
feat(http): add CookieMap and SecureCookieMap ( #2502 )
2022-08-22 18:27:31 +10:00
Asher Gomez
237cc49f8b
feat(http/file_server): return 404 response if file not found ( #2529 )
2022-08-16 14:49:38 +09:00
Asher Gomez
822898d8b3
docs: removed types from jsdoc directives ( #2515 )
2022-08-13 23:53:23 +09:00
Asher Gomez
11819ce656
feat(http/cookie): add set-cookie headers parser ( #2475 )
2022-08-13 23:49:25 +09:00
JongChan Choi
f693ad60d4
feat(http): support cert, key options in serveTls ( #2508 )
2022-08-13 22:44:50 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation ( #2511 )
2022-08-11 21:51:20 +10:00
Timo Rossa
c99fe6923b
feat(http/http_errors): add headers property ( #2462 )
...
Closes : #2451
2022-07-26 14:28:47 +10:00
Bartek Iwańczuk
c2a8951c04
chore: update to changes in spawn API ( #2448 )
2022-07-19 02:35:19 +02:00
Kitson Kelly
2a02009d42
feat(http): add content negotiation ( #2302 )
2022-07-04 17:26:56 +10:00
Kitson Kelly
5f0eb925d8
feat(http): add HTTP errors ( #2307 )
2022-07-04 16:40:11 +10:00
Timo Rossa
b5a32c6e44
fix(http): Disable console.error
if opts.quiet
is true ( #2379 )
...
Disable `console.error` if `opts.quiet` is true
2022-06-23 10:00:18 -04:00
Benjamin Fischer
45cf7717ec
feat(flags): infer argument types, names and defaults ( #2180 )
2022-06-21 15:36:51 +09:00
Sơn Trần-Nguyễn
c83dc62932
refactor(http/file_server): uniform status & statusText ( #2361 )
2022-06-17 12:26:44 +09:00
Sơn Trần-Nguyễn
c7484ff14b
docs(http/file_server): fix comment for mtime
( #2350 )
2022-06-16 15:21:32 +09:00
Bartek Iwańczuk
a06298b0b5
chore: Update top level module JSDocs ( #2343 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-06-14 11:20:56 +02:00
Benjamin Fischer
762c47a93c
BREAKING(flags): introduce negatable option ( #2301 )
2022-06-09 13:06:36 +09:00
Ruslan Tushov
bcc5747842
fix: pass resolved ephemeral port to onListen ( #2311 )
...
Pass resolved ephemeral port to onListen instead of 0.
2022-06-07 08:33:09 -04:00
Kitson Kelly
6df7747014
BREAKING feat(http): improve type safety and docs for http_status ( #2297 )
...
`STATUS_TEXT` is now just a record object instead of a map, which provides more utility for less overhead.
2022-06-03 11:21:43 +10:00
Kitson Kelly
71054ecf7f
refactor(http): file_server uses std/media_types ( #2298 )
2022-06-03 09:30:02 +10:00
ayame113
b3b6f944dd
chore(http/file_server): export interface for serveDir/serveFile ( #2293 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-01 23:56:57 +09:00
Yoshiya Hinosawa
034c6e2833
test: fix unhandled promises in test cases ( #2281 )
2022-05-29 21:02:37 +09:00
Leo Kettmeir
852968f631
refactor: switch the Deno.spawn ( #2161 )
2022-05-25 11:08:27 +02:00
Yoshiya Hinosawa
d6bdd62390
feat(http/util): add compareEtag ( #2259 )
2022-05-23 13:53:16 +09:00
masx200
3403116ca9
fix(http/file_server): fix handling of 'W/' prefixed etag ( #2229 )
2022-05-16 22:24:11 +09:00
Yoshiya Hinosawa
629a458845
feat(http): add onListen option to serve ( #2218 )
2022-05-16 20:39:29 +09:00
like-nanhai
c75454c44b
docs: add module level docs ( #2190 )
2022-05-04 19:34:37 +09:00
Bartek Iwańczuk
d85a348f97
test(http): add catch handler to server promise ( #2178 )
2022-05-03 15:58:28 +02:00
Timo Rossa
0e74e21965
fix(http): export interface ServeTlsInit ( #2148 )
2022-04-24 21:20:56 +09:00
Ryan Dahl
3b7aca1842
http: serve() should log where it is listening ( #1641 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-04-22 16:15:44 -04:00
Divy Srivastava
ec966d3de6
chore(http): update file_server tests w.r.t. stream compression ( #2133 )
2022-04-21 18:29:34 +05:30
Jayden Seric
8c05217c5a
fix(http): use the addEventListener
method instead of onabort
properties ( #2124 )
2022-04-20 13:49:22 +09:00
Divy Srivastava
f62ef207f2
perf(http): optimize file server ( #2116 )
2022-04-18 08:11:11 +05:30
Yoshiya Hinosawa
b36f8a41b7
fix(node/http): ignore error from respondWith
( #2058 )
2022-03-24 01:19:00 +09:00
Jesse Jackson
58204e6f56
refactor: mark modules as browser compatible ( #1972 )
2022-03-01 13:25:50 +09:00
Yoshiya Hinosawa
936a8cf4d6
feat(http): expose serveDir function from file_server.ts ( #1944 )
2022-02-22 11:06:26 +09:00
Bartek Iwańczuk
658340bad4
fix: http/_mock_conn.ts ( #1926 )
2022-02-15 17:38:18 +01:00
Ryan Dahl
3b43d075ea
0.125.0
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-02-03 23:46:48 +01:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header ( #1871 )
2022-02-02 23:21:39 +09:00
Yoshiya Hinosawa
c331dad1df
chore: update mock Deno.Conn ( #1867 )
2022-02-01 18:28:05 +09:00
Luca Casonato
f0506f5d79
chore(http/file_server): only seek if necessary ( #1836 )
...
Minor peformance optimization.
2022-01-21 13:30:56 +01:00
Bartek Iwańczuk
f4e0d45590
chore: tweak server examples ( #1822 )
2022-01-13 18:33:00 +01:00
Bartek Iwańczuk
4d3094c935
feat(http): add eyecandy to file_server ( #1804 )
2022-01-09 02:51:55 +01:00
Erfan Safari
38b0a9f874
feat(http/file_server): add 'quiet' flag ( #1773 )
...
Fixes #1768 .
2022-01-07 11:03:20 +01:00
Bartek Iwańczuk
efa94f2ccc
fix: http/bench.ts ( #1776 )
2022-01-02 12:02:20 +01:00
Jonas Grunert
251ad20639
BREAKING(http): remove Go-style address ( #1660 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Craig Morten <cmorten@users.noreply.github.com>
2021-12-14 00:38:32 +09:00
Bartek Iwańczuk
3f6263547e
[BREAKING] Remove 'server_legacy' from 'http' module ( #1648 )
2021-12-13 14:18:17 +01:00
Bartek Iwańczuk
dcad2062d5
[BREAKING] Remove assertThrowsAsync from 'testing/' ( #1646 )
2021-12-13 14:00:20 +01:00
Yoshiya Hinosawa
3a441de21a
test(http): fix error message of unknown issuer ( #1681 )
2021-12-07 21:46:24 +09:00
Kyle Warren
bfd6356f9c
feat(http): add onError option to serveListener and serveTls ( #1679 )
2021-12-07 11:58:43 +09:00
Satya Rohith
04a55c008a
feat(http): introduce onError option on ServerInit ( #1621 )
2021-12-01 19:11:31 +05:30
Yuki Tanaka
d14d829b44
chore(http/file_server): migrate to serve and serveTls ( #1566 )
2021-11-14 14:17:19 +01:00
vwkd
cb1c296731
fix(http): update README ( #1546 )
2021-11-10 14:31:32 +01:00
Luca Casonato
9d6d654a6c
0.114.0
2021-11-09 14:53:18 +01:00
Yoshiya Hinosawa
15c7868e1d
BREAKING(http): update serve
, add serveListener
, deprecate listenAndServe
( #1506 )
2021-11-09 12:24:09 +09:00
Yoshiya Hinosawa
cd92997b2c
fix(http/file_server): don't require --allow-read for showing help message ( #1521 )
2021-11-04 19:22:55 +09:00
Yoshiya Hinosawa
03b1af798f
refactor(http/file_server): use default and alias feature of flag parser ( #1512 )
2021-11-04 00:02:41 +09:00
Yoshiya Hinosawa
a18d4996c0
refactor(http/file_server): remove html template literal tag ( #1513 )
2021-11-03 21:50:00 +09:00
Yoshiya Hinosawa
8c41818eb9
test(http/file_server): skip type checking in each test case ( #1514 )
2021-11-03 17:11:19 +09:00
Tommy Josépovic
e563b562d0
feat(http/file_server): add streaming support, fix empty file handling ( #1479 )
2021-10-28 17:08:18 +09:00
ayame113
9e23e1c82e
docs(http/http_status): add documents for http_status.ts ( #1451 )
2021-10-24 14:05:22 +09:00
vi117
41ad7cebeb
fix(http/file_server): fix leak file resource ( #1443 )
2021-10-22 17:11:43 +09:00
vi117
fb35d70347
fix(http/file_server): fix encoded url in dir html ( #1442 )
2021-10-22 15:30:16 +09:00
xiao xigua
efd75836be
feat(http/file_server): add color to log message ( #1434 )
2021-10-21 03:08:19 +09:00
xiao xigua
74b4a2c447
feat(http/file_server): add breadcrumbs navigation ( #1433 )
2021-10-20 17:04:32 +09:00
ayame113
bbe2271bad
test(http/server): add a test case for the combination of Deno.upgradeWebSocket()
and listenAndServe()
( #1324 )
2021-10-19 02:12:26 +09:00
Yoshiya Hinosawa
a4730dea0d
chore: fmt ( #1393 )
2021-10-13 20:38:54 +09:00
Leo K
b58b10c229
feat: streams utilities ( #1141 )
2021-10-12 11:51:48 +02:00
Nayeem Rahman
d21aa79126
BREAKING(io): Reorganize modules ( #813 )
...
This commit reogranizes many modules:
- Move exports of io/bufio.ts (removed) into io/buffer.ts.
- Move exports of io/util.ts (repurposed, see next bullet) into io/streams.ts.
* With the exception of readRange() and readRangeSync(), which have been moved to io/files.ts (new).
*Also rename iter() and iterSync() to iterateReader() and iterateReaderSync() respectively.
- Move exports of io/ioutil.ts (removed) into io/util.ts.
Deprecation messages were added to old modules to make this change backwards compatible.
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-10-08 03:42:33 +02:00
Bartek Iwańczuk
44c326dc5b
fix: update to latest signal API changes ( #1211 )
2021-09-15 01:32:26 +02:00
Yasser A.Idrissi
e52ee67e42
docs(http/cookie): improve jsdoc ( #1231 )
2021-09-13 19:20:06 +09:00
Tim Reichen
63f22aa880
BREAKING(http): cookie headers as params ( #1041 )
2021-09-13 15:16:16 +09:00
Craig Morten
7f8335449a
docs: reduce friction for windows users r.e. 0.0.0.0
( #1210 )
2021-09-07 16:29:44 +09:00
Craig Morten
dd718b9fa6
docs(http): adhere to deno style guide in std/http
module ( #1202 )
2021-09-06 17:06:59 +09:00
Craig Morten
0fc3b2e75e
feat(http): implement native HTTP server APIs ( #1128 )
2021-08-31 10:36:30 -04:00
Kitson Kelly
b7c61a27a7
chore: updates related to TypeScript 4.4 ( #1171 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 14:39:04 +10:00
Behnam Mohammadi
1a346417fd
refactor: use os util on entire of codebase ( #1123 )
2021-08-13 11:11:14 +09:00
Ryan Dahl
455077a905
fix: type check examples in README files ( #1121 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-11 11:28:10 +02:00
Yasser A.Idrissi
eb69dbd380
feat(testing): add assertRejects, deprecate assertThrowsSync ( #1101 )
2021-08-09 14:59:52 +09:00
Yuki Tanaka
0ffdf9c6ed
fix(http/file_server): fix flaky 'file_server sets Date header correctly' test case ( #1095 )
2021-08-05 00:34:15 +09:00
timonson
5efcc78827
feat(http/file_server): return code 304 based on If-Modified-Since Header ( #1078 )
2021-08-03 15:58:31 +09:00
Yasser A.Idrissi
2c26f0673f
test(http): fix flaky file_server test ( #1059 )
2021-07-23 22:16:52 +09:00
Yoshiya Hinosawa
186354327c
chore: enable doc type checking ( #1050 )
2021-07-23 19:09:38 +09:00
Paul Ellis
0722cd0770
feat(http): add range request and etag support to file_server.ts
( #1028 )
2021-07-22 15:12:40 +09:00
Luca Casonato
81314bcab8
feat: add copy
util to std/io ( #1016 )
...
This is in preparation of deprecation in Deno, and removal in Deno 2.0.
2021-07-12 14:46:07 +02:00
Yasser A.Idrissi
3f446475be
feat(http): Add Cookie domain validation ( #1009 )
...
Cookie domain should not start with - and end with . or -.
https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.2.3
2021-07-08 13:19:10 -04:00
Yasser A.Idrissi
6f62e9c271
docs(http): add deleteCookie options documentation ( #1007 )
2021-07-08 17:11:19 +09:00
Yasser A.Idrissi
d8e61e4768
feat(http): Allow passing path and domain attributes while removing cookies ( #1005 )
2021-07-06 20:57:35 +02:00
Nayeem Rahman
7c3f017d3b
fix(http/server): Swallow NotConnected errors from listener.accept() ( #761 )
2021-07-06 17:47:06 +02:00
Simon Rask
f3828fa852
fix: setCookie
with maxAge
of 0
( #992 )
2021-06-30 14:02:22 -04:00
Yasser A.Idrissi
c8d492017f
docs(hash,http): add module descriptions ( #934 )
2021-05-25 13:05:32 +09:00
Luca Casonato
db348ae388
fix: bad assumption about tls in server tests ( #915 )
...
This commit fixes a bad assumption that `connectTls` will throw on a
handshaking error. Really the TLS conn will only fail on first read or
write.
2021-05-11 22:33:28 +02:00
Simon Lecoq
1b4eff019b
feat(http): allow custom response code ( #855 )
2021-05-11 17:05:00 +09:00
木杉
b850d01991
fix(http/file_server): keep url and name consistent ( #908 )
...
Add trailing slash to href on directories to match the name displayed on screen.
2021-05-10 09:29:26 -04:00
Yasser A.Idrissi
a2ea1bc67f
ref(http): Remove Cookie from validation function name ( #893 )
2021-05-06 08:50:40 -04:00
Ryan Dahl
71fd34c099
Fix test after Headers API was made spec compliant ( #865 )
2021-04-20 12:19:18 -04:00
Luca Casonato
564b44f68a
feat: add iter and iterSync to io/util ( #843 )
...
This moves the `Deno.iter` and `Deno.iterSync` implementations to std,
so we can deprecate them in Deno 1.9, and remove them in Deno 2.0.
2021-04-11 13:53:30 +02:00
William Perron
69f3d67cb2
chore: remove Promise<void>
return type annotation ( #819 )
...
There's a couple of instances where `Promise<void>` is still there,
those are the exceptions, for example functions that explicitely return
a `Promise` object or functions that return the promise from another
function call without any `await` statement.
used this one-liner to automatically remove everything:
```bash
grep -rli 'promise<void>' | xargs sed -i 's/: Promise<void>//g
```
2021-04-05 07:49:05 -04:00
Yasser A.Idrissi
7c15717af7
fix(http): Remove unused readAll
import ( #817 )
2021-03-25 09:37:01 -04:00
Luca Casonato
be89f5a714
feat: add io/buffer and io/util module ( #808 )
...
This moves the `Deno.Buffer` and `Deno.readAll` / `Deno.readAllSync` /
`Deno.writeAll` / `Deno.writeAllSync` implementations to std, so we can
deprecate them in Deno 1.9, and remove them in Deno 2.0.
2021-03-22 22:45:35 +01:00
Rustam
27dcc84ae1
fix: encoder/decoder one instance ( #790 )
...
Fixes #788
2021-03-08 09:19:42 +10:00
Yusuke Tanaka
b134d54319
refactor: fix codes to pass no-unused-vars
lint ( #764 )
2021-03-02 15:31:37 +09:00
Zhangyuan Nie
5bc18f5d86
BREAKING(encoding): remove module utf8.ts ( #728 )
2021-02-16 13:22:07 +01:00
Casper Beyer
07050a8760
BREAKING(http/cookie): remove Cookies and SameSite type aliases ( #720 )
2021-02-12 11:59:54 +01:00
Fons van der Plas
2b14db30da
fix(http/file_server): svg media type ( #718 )
2021-02-11 09:08:00 +11:00
木杉
5707b9b2ed
feat(http/file_server): support do not show dotfiles ( #690 )
2021-02-02 14:36:52 -05:00
木杉
715d53e272
feat(http/file_server): show ../ if it makes sense & end dirs with / ( #691 )
2021-02-02 12:01:21 +01:00
Casper Beyer
d5bad95a71
chore: Setup CI and tests
...
Create ci.yml
chore: add wasi-test-suite as a submodule
chore: remove legacy configuration files and scripts
chore: remove outdated redirection notice
chore: add git attributes to ensure text files use unix line endings
chore: format
test(http): copy tls testdata from denoland/deno
2021-02-01 12:20:35 +01:00
Bert Belder
e2870f39bf
refactor: IO resource types, fix concurrent read/write and graceful close ( denoland/deno#9118 )
...
Fixes: 9032.
2021-02-01 10:46:59 +00:00
Luca Casonato
5c1f86e63e
Revert "tests: enable wpt for url ( denoland/deno#9046 )" ( denoland/deno#9264 )
...
This reverts commit 66e99d349b31f5cd30b868d80ebdab6ba749fd96.
2021-02-01 10:46:59 +00:00
Luca Casonato
f7b62f11d3
tests: enable wpt for url ( denoland/deno#9046 )
2021-02-01 10:46:59 +00:00
Bartek Iwańczuk
84ee144ba8
chore: Enforce ban-untagged-todo lint rule ( denoland/deno#9135 )
2021-02-01 10:46:59 +00:00
Ryan Dahl
48a2496dbe
update copyright to 2021 ( denoland/deno#9081 )
2021-02-01 10:46:59 +00:00
Zhangyuan Nie
8528b86712
fix(http): Use ES private fields in server ( denoland/deno#8981 )
2021-02-01 10:46:58 +00:00
Noxazer
87fa655c12
fix(http): parsing of HTTP version header ( denoland/deno#8902 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
8e8d672d75
fix(http): Don't expose ServerRequest::done as Deferred ( denoland/deno#8919 )
2021-02-01 10:46:58 +00:00
Yasser A.Idrissi
9c9982a60f
feat(http): Add Cookie value validation ( denoland/deno#8471 )
2021-02-01 10:46:58 +00:00
sarahdenofiletrav
a7558b92ff
fix(http): prevent path traversal ( denoland/deno#8474 )
...
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 ).
2021-02-01 10:46:58 +00:00
Yasser A.Idrissi
a1ba678504
feat(http): Validate cookie path value ( denoland/deno#8457 )
2021-02-01 10:46:58 +00:00
Yasser A.Idrissi
d0290cd7a1
refactor(http): Rename validateCookieName param name & JSDoc ( denoland/deno#8451 )
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
4379f0a9c1
test: make test output less noisy ( denoland/deno#8445 )
...
This commit makes output of tests less noisy
by passing "--quiet" flag to Deno subprocesses run
as part of test suite.
2021-02-01 10:46:58 +00:00
William Perron
0ea945721b
docs: add missing jsdoc comments to exported functions ( denoland/deno#8442 )
...
includes:
- http/file_server.ts
- testing/_diff.ts
- testing/asserts.ts
Relates to denoland/deno#7487
2021-02-01 10:46:58 +00:00
lideming
53fc2a46ed
fix(http): fix error handling in the request iterator ( denoland/deno#8365 )
...
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.
2021-02-01 10:46:58 +00:00
Yasser A.Idrissi
39513d8750
feat(http): Check if cookie property is valid ( denoland/deno#7189 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-02-01 10:46:58 +00:00
Mark Tiedemann
e755eeefe0
fix(http): flush body chunks for HTTP chunked encoding ( denoland/deno#8349 )
...
Fixes denoland/deno#8339
2021-02-01 10:46:58 +00:00
Luca Casonato
701513431e
fix: path traversal in http/file_server.ts ( denoland/deno#8134 )
2021-02-01 10:46:58 +00:00
Tim Reichen
55a7adb58e
rename(testing): rename assert*Contains to assert*Includes ( denoland/deno#7951 )
...
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2021-02-01 10:46:58 +00:00
uki00a
cd668cb3f3
fix(http/file_server): File server should ignore query params ( denoland/deno#8116 )
2021-02-01 10:46:58 +00:00