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

Allow per-request setting of options on the Curl easy_handle #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

c42f
Copy link
Member

@c42f c42f commented Sep 21, 2021

This allows any of the more esoteric CURL options to be applied as necessary on a per-request basis.

This is the bare-bones approach to fixing #141 which I'm using in HTTPDownloads.jl (I had to vendor parts of Downloads to do that).

I can go ahead and add tests / docs if this seems like the right approach.

The thing I don't love about exposing the easy handle as part of the official API as it ties this package more closely with libcurl at an API level. Perhaps that's mostly solvable with documentation though + exposing more of the commonly needed operations so people don't need the escape hatch.

This allows any of the more esoteric CURL options to be applied as
necessary on a per-request basis.
@codecov
Copy link

codecov bot commented Sep 21, 2021

Codecov Report

Merging #148 (ba50864) into master (5f1509d) will increase coverage by 0.23%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
+ Coverage   92.77%   93.00%   +0.23%     
==========================================
  Files           5        5              
  Lines         498      515      +17     
==========================================
+ Hits          462      479      +17     
  Misses         36       36              
Impacted Files Coverage Δ
src/Downloads.jl 83.00% <100.00%> (+0.17%) ⬆️
src/Curl/utils.jl 97.67% <0.00%> (+0.11%) ⬆️
src/Curl/Easy.jl 94.51% <0.00%> (+0.19%) ⬆️
src/Curl/Multi.jl 96.06% <0.00%> (+0.19%) ⬆️

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 5f1509d...ba50864. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant