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

Feat/add custom headers #141

Merged
merged 3 commits into from
Apr 6, 2022
Merged

Feat/add custom headers #141

merged 3 commits into from
Apr 6, 2022

Conversation

DanielRamosAcosta
Copy link
Owner

This PR adds support for adding custom headers with the following API:

await tepper(app)
  .get("/")
  .withHeaders({
    "X-Custom-Header": "custom-header-value",
  })
  .run()

@DanielRamosAcosta DanielRamosAcosta added the enhancement New feature or request label Apr 6, 2022
@DanielRamosAcosta DanielRamosAcosta self-assigned this Apr 6, 2022
@codecov-commenter
Copy link

codecov-commenter commented Apr 6, 2022

Codecov Report

Merging #141 (4b9c095) into main (88d9141) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #141      +/-   ##
==========================================
+ Coverage   96.04%   96.08%   +0.04%     
==========================================
  Files          10       10              
  Lines         177      179       +2     
  Branches       40       40              
==========================================
+ Hits          170      172       +2     
  Misses          6        6              
  Partials        1        1              
Impacted Files Coverage Δ
src/TepperRunner.ts 98.33% <ø> (ø)
src/tepper.ts 100.00% <ø> (ø)
src/TepperBuilder.ts 93.47% <100.00%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88d9141...4b9c095. Read the comment docs.

@DanielRamosAcosta DanielRamosAcosta merged commit 5ef0a61 into main Apr 6, 2022
@DanielRamosAcosta DanielRamosAcosta deleted the feat/add-custom-headers branch April 6, 2022 11:09
@DanielRamosAcosta DanielRamosAcosta added this to the 0.4.1 milestone Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants