Rename function, use latest reqwest-middleware

This commit is contained in:
2026-05-19 15:27:10 -04:00
parent fb542ff82e
commit f29b5af96d
3 changed files with 9 additions and 4 deletions
+5 -1
View File
@@ -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()
}