MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / HttpStream

Method HttpStream

extensions/http-curl/client/HTTPStream.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace io {
37
38HttpStream::HttpStream(std::shared_ptr<utils::HTTPClient> client)
39 : http_client_(client),
40 written(0),
41 // given the nature of the stream we don't want to slow libCURL, we will produce
42 // a warning instead allowing us to adjust it server side or through the local configuration.
43 http_read_callback_(66560, true),
44 started_(false),
45 logger_(logging::LoggerFactory<HttpStream>::getLogger()) {
46 // submit early on
47}
48
49void HttpStream::close() {
50 http_callback_.close();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected