-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Support CURL based HTTP client #1182
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
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
7efa590
Support CURL based HTTP client
franksinankaya 606565f
Include buffer request for CURL based client
franksinankaya ea3a590
Rename to curl_xyz functions and remove if 0s
franksinankaya 2814029
Restore ifdef
franksinankaya ca838be
Remove conflicting definitions
franksinankaya 2ceebcb
Prefer utility::char_t to TCHAR
franksinankaya bdc6efc
Bring writedata optimization by removing the intermediate buffering
franksinankaya e7858d7
Use std::string where possible
franksinankaya 2b9e778
Unify trace functions and reduce dynamic_cast calls
franksinankaya 17c50d1
Add ubuntu 18.04 azure pipeline with no tests for the moment
franksinankaya fb85f5a
Use ubuntu 16.04 but update the curl in it
franksinankaya 50ac9d4
pipelines: needs sudo for install
franksinankaya 55bc08b
Remove reference to undefined type
franksinankaya ee4c0cc
Eliminate size conversations
franksinankaya 06b5d13
Formatting changes and convert MultiByte functions to C++ native func…
franksinankaya cd4d172
Remove printfs
franksinankaya b27cb39
Move GlobalFree and make_unique to http_client_curl.cpp
franksinankaya d420884
Exit on build error
franksinankaya 8e0bf83
Use unique from utility
franksinankaya 817dd16
Use const where possible, convert reinterpret cast to static cast
franksinankaya 44ca34a
Use nullize_newlines
franksinankaya e2ced5a
Structure TRACE output for each request
franksinankaya 7055a34
Use queue instead of locks
franksinankaya df774d5
Simplify reads, add breadcrumbs on failure
franksinankaya 0b8609a
Ignore http 100 continue
franksinankaya 95bfd6b
Remove buffering support
franksinankaya 593954c
Cleanup repeating patterns and add null checks
franksinankaya 3ab541f
More cleanup
franksinankaya 0345652
tests: CURL doesn't support hostname override
franksinankaya 422655c
More function unification and prevent premature read completion
franksinankaya 1cd5cd1
Fix typo
franksinankaya 89ed468
Support proxies
franksinankaya 8a4d808
Fix spacing
franksinankaya 2124784
Move winhttppal to its own library
franksinankaya 78ef46b
Delta
franksinankaya df34d8f
Share parse_headers_string
franksinankaya 4332fe5
Implement auth scheme
franksinankaya fce2480
Remove http_client_winhttppal.cpp
franksinankaya 17a75fc
sudo install
franksinankaya 8db16da
Undo warning suppress
franksinankaya cdb2244
Fix capitalization
franksinankaya 22b34f9
Merge remote-tracking branch 'origin/master' into frkaya/curlhttp
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function(cpprest_find_winhttppal) | ||
if(TARGET cpprestsdk_winhttppal_internal) | ||
return() | ||
endif() | ||
|
||
if(NOT WINHTTPPAL_LIBRARY OR NOT WINHTTPPAL_INCLUDE_DIRS) | ||
find_package(winhttppal REQUIRED) | ||
endif() | ||
|
||
add_library(cpprestsdk_winhttppal_internal INTERFACE) | ||
if(TARGET winhttppal::winhttppal) | ||
target_link_libraries(cpprestsdk_winhttppal_internal INTERFACE winhttppal::winhttppal) | ||
else() | ||
target_link_libraries(cpprestsdk_winhttppal_internal INTERFACE "$<BUILD_INTERFACE:${WINHTTPPAL_LIBRARY}>") | ||
target_include_directories(cpprestsdk_winhttppal_internal INTERFACE "$<BUILD_INTERFACE:${WINHTTPPAL_INCLUDE_DIRS}>") | ||
endif() | ||
endfunction() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.