-
Notifications
You must be signed in to change notification settings - Fork 133
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
Snow 1814745 fix aborting requests in http client #967
base: master
Are you sure you want to change the base?
Snow 1814745 fix aborting requests in http client #967
Conversation
…s. Added logs for node.js http client. Renamed utils file to comply with convention.
…bles. Fixed comments styling.
…est logic. Unified request and request async
lib/http/base.js
Outdated
let sendRequest = async function sendRequest() { | ||
Logger.getInstance().trace('Request%s - sending.', requestUtil.describeRequestFromOptions(requestOptions)); | ||
const timer = new ExecutionTimer().start(); | ||
requestPromise = axios.request(requestOptions).then(response => { | ||
requestPromise = axios.request(requestOptions, { signal: requestController }).then(response => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this to a separate object - e.g. requestHandlers
…t using connection config added.
…ters describing token prefixing it fixed.
…rting-requests-in-HttpClient
adb13c4
to
6c27246
Compare
… added. Test for normalizing the response added.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #967 +/- ##
==========================================
+ Coverage 88.92% 89.07% +0.15%
==========================================
Files 72 72
Lines 6950 6955 +5
==========================================
+ Hits 6180 6195 +15
+ Misses 770 760 -10 ☔ View full report in Codecov by Sentry. |
Description
Please explain the changes you made here.
Checklist
npm run lint:check -- CHANGED_FILES
and fix problems in changed code)npm run test:unit
andnpm run test:integration
)