Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v8.x backport] backport 17338, 18186, 18358, 18546 #19191

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
58478d8
http2: add http fallback options to .createServer
hekike Oct 27, 2017
5ea29ef
http: add options to http.createServer()
Oct 19, 2017
ae2ebde
http2: add req and res options to server creation
Oct 5, 2017
28a2729
http2: use `_final` instead of `on('finish')`
addaleax Feb 7, 2018
8b234f5
doc: warn against concurrent http2stream.respondWithFD
addaleax Feb 13, 2018
c6a9abd
src: add nullptr check for session in DEBUG macro
danbev Feb 16, 2018
d85e5f4
doc: fix typo in http2.md
vsemozhetbyt Feb 19, 2018
55cf145
deps,src: align ssize_t ABI between Node & nghttp2
addaleax Feb 4, 2018
b1d95ec
http2: fix condition where data is lost
mcollina Feb 19, 2018
1029369
http2: send error text in case of ALPN mismatch
addaleax Feb 25, 2018
0379350
http2: use original error for cancelling pending streams
addaleax Feb 25, 2018
1f3ab4f
http2: fix endless loop when writing empty string
addaleax Feb 22, 2018
199d9a5
test: check endless loop while writing empty string
XadillaX Feb 11, 2018
10aaa74
http2: fix flaky test-http2-https-fallback
mcollina Mar 2, 2018
f165e9f
http2: no stream destroy while its data is on the wire
addaleax Feb 26, 2018
8daddfb
doc: add note about browsers and HTTP/2
styfle Mar 20, 2018
0137eb7
http2: remove some unnecessary next ticks
jasnell Mar 19, 2018
8f55971
doc: rename HTTP2 to HTTP/2
TimothyGu Mar 26, 2018
9c7bf7f
test: http2 stream.respond() error checks
trivikr Feb 19, 2018
519b063
http2: destroy() stream, upon errnoException
SirR4T Mar 16, 2018
22eddf1
doc: guard against md list parsing edge case
vsemozhetbyt Mar 28, 2018
f5a2cd5
test: http2 errors on req.close()
trivikr Feb 18, 2018
af7c7cb
http2: callback valid check before closing request
trivikr Feb 28, 2018
3a890a8
doc, http2: add sections for server.close()
chrismilleruk Apr 4, 2018
4dc0b3c
doc: add Http2Session.connecting property
pietermees Apr 6, 2018
c83098a
http2: emit session connect on next tick
pietermees Apr 9, 2018
1f35b8f
src: expose uv.errmap to binding
joyeecheung Dec 25, 2017
d501138
util: implement util.getSystemErrorName()
joyeecheung Jan 16, 2018
a3754e7
errors: lazy load util in internal/errors.js
joyeecheung Jan 24, 2018
2179547
util: skip type checks in internal getSystemErrorName
joyeecheung Feb 3, 2018
d8b637f
errors: move error creation helpers to errors.js
joyeecheung Feb 3, 2018
74e3b14
errors: make message non-enumerable
BridgeAR Apr 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions deps/nghttp2/lib/includes/config.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
/* Hint to the compiler that a function never returns */
#define NGHTTP2_NORETURN

/* Define to `int' if <sys/types.h> does not define. */
#define ssize_t int
/* Edited to match src/node.h. */
#include <stdint.h>

#ifdef _WIN32
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef intptr_t ssize_t;
# define _SSIZE_T_
# define _SSIZE_T_DEFINED
#endif
#else // !_WIN32
# include <sys/types.h> // size_t, ssize_t
#endif // _WIN32

/* Define to 1 if you have the `std::map::emplace`. */
#define HAVE_STD_MAP_EMPLACE 1
Expand Down
15 changes: 13 additions & 2 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -1663,10 +1663,21 @@ A collection of all the standard HTTP response status codes, and the
short description of each. For example, `http.STATUS_CODES[404] === 'Not
Found'`.

## http.createServer([requestListener])
## http.createServer([options][, requestListener])
<!-- YAML
added: v0.1.13
-->
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/15752
description: The `options` argument is supported now.
-->
- `options` {Object}
* `IncomingMessage` {http.IncomingMessage} Specifies the IncomingMessage class
to be used. Useful for extending the original `IncomingMessage`. Defaults
to: `IncomingMessage`
* `ServerResponse` {http.ServerResponse} Specifies the ServerResponse class to
be used. Useful for extending the original `ServerResponse`. Defaults to:
`ServerResponse`
- `requestListener` {Function}

* Returns: {http.Server}
Expand Down
Loading