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

proper header handling #160

Merged
merged 11 commits into from
Dec 16, 2021
Merged

proper header handling #160

merged 11 commits into from
Dec 16, 2021

Conversation

n1ru4l
Copy link
Contributor

@n1ru4l n1ru4l commented Nov 19, 2021

handle accept and content-type headers according to the GraphQL over HTTP specification.

@n1ru4l n1ru4l changed the title Feat accept header adjustments accept header adjustments Nov 19, 2021
@n1ru4l n1ru4l changed the title accept header adjustments header handling Nov 19, 2021
@n1ru4l n1ru4l mentioned this pull request Nov 19, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2021

✅ Benchmark Results

     ✓ no_errors
     ✓ expected_result

     checks.........................: 100.00% ✓ 30802       ✗ 0    
     data_received..................: 3.5 MB  347 kB/s
     data_sent......................: 4.2 MB  420 kB/s
     http_req_blocked...............: avg=1.44µs   min=900ns   med=1.2µs   max=200.2µs p(90)=1.8µs   p(95)=2.29µs 
     http_req_connecting............: avg=9ns      min=0s      med=0s      max=143.9µs p(90)=0s      p(95)=0s     
   ✓ http_req_duration..............: avg=554.25µs min=402.7µs med=482.1µs max=15.56ms p(90)=642.2µs p(95)=734.3µs
       { expected_response:true }...: avg=554.25µs min=402.7µs med=482.1µs max=15.56ms p(90)=642.2µs p(95)=734.3µs
     http_req_failed................: 0.00%   ✓ 0           ✗ 15401
     http_req_receiving.............: avg=21.02µs  min=10.5µs  med=18.2µs  max=3.05ms  p(90)=25µs    p(95)=31.6µs 
     http_req_sending...............: avg=10.68µs  min=5.6µs   med=8.4µs   max=4.17ms  p(90)=13.3µs  p(95)=14.5µs 
     http_req_tls_handshaking.......: avg=0s       min=0s      med=0s      max=0s      p(90)=0s      p(95)=0s     
     http_req_waiting...............: avg=522.54µs min=380.3µs med=453.1µs max=15.37ms p(90)=609.5µs p(95)=702.8µs
     http_reqs......................: 15401   1539.822375/s
     iteration_duration.............: avg=643.24µs min=471.4µs med=566.9µs max=16.16ms p(90)=737.3µs p(95)=830.1µs
     iterations.....................: 15401   1539.822375/s
     vus............................: 1       min=1         max=1  
     vus_max........................: 1       min=1         max=1  

@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2021

The latest changes of this PR are available as canary in npm (based on the declared changesets):

@vercel
Copy link

vercel bot commented Dec 15, 2021

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/graphql-helix/settings/billing.

@n1ru4l n1ru4l force-pushed the feat-accept-header-adjustments branch from c2cd2ec to 25c4add Compare December 15, 2021 17:46
@n1ru4l n1ru4l changed the title header handling proper header handling Dec 15, 2021
packages/core/lib/process-request.ts Outdated Show resolved Hide resolved
packages/core/lib/process-request.ts Outdated Show resolved Hide resolved
packages/core/lib/process-request.ts Outdated Show resolved Hide resolved
packages/core/lib/process-request.ts Outdated Show resolved Hide resolved
packages/core/lib/process-request.ts Outdated Show resolved Hide resolved
packages/core/lib/send-result/node-http.ts Outdated Show resolved Hide resolved
@dotansimha dotansimha self-requested a review December 16, 2021 09:51
@n1ru4l n1ru4l merged commit f07a403 into master Dec 16, 2021
@n1ru4l n1ru4l deleted the feat-accept-header-adjustments branch December 16, 2021 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants