17 #ifndef COM_BORA_SOFTWARE__BALAU_RESOURCE__HTTP_BYTE_READ_RESOURCE 18 #define COM_BORA_SOFTWARE__BALAU_RESOURCE__HTTP_BYTE_READ_RESOURCE 21 #include <Balau/Resource/Impl/HttpSource.hpp> 23 #include <boost/iostreams/stream.hpp> 42 : url(std::move(rhs.url))
43 , stream(std::move(rhs.stream)) {}
53 public:
const Uri &
uri()
const override;
61 private: std::unique_ptr<Http> url;
62 private: std::unique_ptr<boost::iostreams::stream<Impl::HttpSource>> stream;
67 #endif // COM_BORA_SOFTWARE__BALAU_RESOURCE__HTTPS_BYTE_READ_RESOURCE std::istream & readStream() override
Get the input stream of the byte read resource.
Definition: HttpByteReadResource.hpp:49
A read-only resource which is read as bytes.
Definition: ByteReadResource.hpp:29
A read-only HTTP resource which is read as bytes.
Definition: HttpByteReadResource.hpp:33
An abstract universal resource identifier.
Definition: Uri.hpp:131
void close() override
Close the stream(s) in the resource.
Definition: HttpByteReadResource.hpp:55
The unified resource class hierarchy.
Definition: ByteReadResource.hpp:24
An HTTP URL.
Definition: Http.hpp:31
HttpByteReadResource(const Http &url_)
Create a new HTTP byte read resource from the supplied HTTP URI.
const Uri & uri() const override
Get the URI associated with this resource.
A read-only resource which is read as bytes.