Skip to content

http client implementation using cross platform yhirose/cpp-httplib library#371

Closed
lalitb wants to merge 1 commit intoopen-telemetry:masterfrom
lalitb:http-client-impl
Closed

http client implementation using cross platform yhirose/cpp-httplib library#371
lalitb wants to merge 1 commit intoopen-telemetry:masterfrom
lalitb:http-client-impl

Conversation

@lalitb
Copy link
Copy Markdown
Member

@lalitb lalitb commented Oct 20, 2020

This PR provides header only http client implementation for HTTP client API (refer PR #370 ), internally using cross-platform header-only httplib library.

TBD - Unit test case, thread safe.

Please review it, while I would be adding TBD changes as part of this. This PR is dependent on #370

@lalitb lalitb requested a review from a team October 20, 2020 15:55
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 20, 2020

Codecov Report

Merging #371 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #371   +/-   ##
=======================================
  Coverage   94.91%   94.91%           
=======================================
  Files         155      155           
  Lines        6882     6882           
=======================================
  Hits         6532     6532           
  Misses        350      350           

@lalitb lalitb changed the title [WIP] http client implementation using cross platform yhirose/cpp-httplib library http client implementation using cross platform yhirose/cpp-httplib library Oct 20, 2020
// MIT License
//

#ifndef CPPHTTPLIB_HTTPLIB_H
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this library distributed?

should we "shade" this library behind a namespace so we don't wind up with version issues if someone pulls in a different version that is somehow not source compatible?

@maxgolov
Copy link
Copy Markdown
Contributor

I would suggest to abandon this and work either on:

  • in-house HTTP client (for Unit tests); or, better
  • libevent -based HTTP client implementation

We probably don't want to add this MIT-licensed code to our repo, as well as take dependency on it - it does not seem to be widely used in production.

@lalitb lalitb closed this Nov 4, 2020
@lalitb
Copy link
Copy Markdown
Member Author

lalitb commented Nov 4, 2020

We are no longer going to use httplib as client library.

@reyang
Copy link
Copy Markdown
Member

reyang commented Nov 4, 2020

Superseded by #385.

GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Aug 31, 2025
…oid-0.x

Update dependency rules_android to v0.6.5
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.

4 participants