Would like to use got
in favour of request
. Would like to maintain existing ability to log the TLS version used for a given HTTP request.
response.socket.getProtocol()
returns null
.
response.socket.getProtocol()
should return TLSv1.3
(for example below).
const request = require("request");
request(
"https://www.google.com",
function (error, response, body) {
console.log('request', response.socket.getProtocol())
}
);
import("got").then(async (module) => {
const { got } = module;
try {
const response = await got(
"https://www.google.com",
);
console.log('got', response.socket.getProtocol())
} catch (error) {
console.error(error.message);
}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too