Rename function, use latest reqwest-middleware
This commit is contained in:
+5
-1
@@ -39,7 +39,7 @@ impl ResourceRequestBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn allow_all_supported_formats(mut self) -> Self {
|
||||
pub fn allow_only_supported_formats(mut self) -> Self {
|
||||
self.formats = vec![
|
||||
RdfFormat::N3,
|
||||
RdfFormat::NQuads,
|
||||
@@ -160,6 +160,10 @@ impl Resource {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn format(&self) -> Option<RdfFormat> {
|
||||
self.format
|
||||
}
|
||||
|
||||
pub fn into_stream(self) -> impl Stream<Item = reqwest_middleware::reqwest::Result<Bytes>> {
|
||||
self.response.bytes_stream()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user