input/InputStream: add method GetUriView()
This commit is contained in:
parent
5ca74acd8d
commit
7e7cdf73b9
|
@ -22,7 +22,7 @@
|
|||
#include <string.h>
|
||||
|
||||
BufferedInputStream::BufferedInputStream(InputStreamPtr _input)
|
||||
:InputStream(_input->GetURI(), _input->mutex),
|
||||
:InputStream(_input->GetUriView(), _input->mutex),
|
||||
BufferingInputStream(std::move(_input))
|
||||
{
|
||||
assert(IsEligible(GetInput()));
|
||||
|
|
|
@ -159,6 +159,10 @@ public:
|
|||
return uri.c_str();
|
||||
}
|
||||
|
||||
std::string_view GetUriView() const noexcept {
|
||||
return uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for errors that may have occurred in the I/O thread.
|
||||
* Throws std::runtime_error on error.
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <utility>
|
||||
|
||||
ProxyInputStream::ProxyInputStream(InputStreamPtr _input) noexcept
|
||||
:InputStream(_input->GetURI(), _input->mutex),
|
||||
:InputStream(_input->GetUriView(), _input->mutex),
|
||||
input(std::move(_input))
|
||||
{
|
||||
assert(input);
|
||||
|
|
Loading…
Reference in New Issue