http: add JSDoc property descriptions

PR-URL: https://github.com/nodejs/node/pull/45370
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
pull/45435/head
Rich Trott 2022-11-07 19:38:35 -08:00 committed by Node.js GitHub Bot
parent ca3ed363ff
commit 42c8f099ff
1 changed files with 22 additions and 22 deletions

View File

@ -62,28 +62,28 @@ function createServer(opts, requestListener) {
/** /**
* @typedef {object} HTTPRequestOptions * @typedef {object} HTTPRequestOptions
* @property {httpAgent.Agent | boolean} [agent] * @property {httpAgent.Agent | boolean} [agent] Controls Agent behavior.
* @property {string} [auth] * @property {string} [auth] Basic authentication ('user:password') to compute an Authorization header.
* @property {Function} [createConnection] * @property {Function} [createConnection] Produces a socket/stream to use when the agent option is not used.
* @property {number} [defaultPort] * @property {number} [defaultPort] Default port for the protocol.
* @property {number} [family] * @property {number} [family] IP address family to use when resolving host or hostname.
* @property {object} [headers] * @property {object} [headers] An object containing request headers.
* @property {number} [hints] * @property {number} [hints] Optional dns.lookup() hints.
* @property {string} [host] * @property {string} [host] A domain name or IP address of the server to issue the request to.
* @property {string} [hostname] * @property {string} [hostname] Alias for host.
* @property {boolean} [insecureHTTPParser] * @property {boolean} [insecureHTTPParser] Use an insecure HTTP parser that accepts invalid HTTP headers when true.
* @property {string} [localAddress] * @property {string} [localAddress] Local interface to bind for network connections.
* @property {number} [localPort] * @property {number} [localPort] Local port to connect from.
* @property {Function} [lookup] * @property {Function} [lookup] Custom lookup function. Default: dns.lookup().
* @property {number} [maxHeaderSize] * @property {number} [maxHeaderSize] Overrides the --max-http-header-size value for responses received from the server.
* @property {string} [method] * @property {string} [method] A string specifying the HTTP request method.
* @property {string} [path] * @property {string} [path] Request path.
* @property {number} [port] * @property {number} [port] Port of remote server.
* @property {string} [protocol] * @property {string} [protocol] Protocol to use.
* @property {boolean} [setHost] * @property {boolean} [setHost] Specifies whether or not to automatically add the Host header.
* @property {string} [socketPath] * @property {AbortSignal} [signal] An AbortSignal that may be used to abort an ongoing request.
* @property {number} [timeout] * @property {string} [socketPath] Unix domain socket.
* @property {AbortSignal} [signal] * @property {number} [timeout] A number specifying the socket timeout in milliseconds.
*/ */
/** /**