Changeset View
Changeset View
Standalone View
Standalone View
services/blob/src/http/handlers/blob.rs
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | while offset < file_size { | ||||
offset += chunk_size; | offset += chunk_size; | ||||
} | } | ||||
}; | }; | ||||
Ok( | Ok( | ||||
HttpResponse::Ok() | HttpResponse::Ok() | ||||
.content_type("application/octet-stream") | .content_type("application/octet-stream") | ||||
.append_header(("Content-Length", file_size.to_string())) | |||||
.streaming(Box::pin(stream.in_current_span())), | .streaming(Box::pin(stream.in_current_span())), | ||||
) | ) | ||||
} | } | ||||
#[derive(Deserialize, Debug)] | #[derive(Deserialize, Debug)] | ||||
pub struct AssignHolderPayload { | pub struct AssignHolderPayload { | ||||
holder: String, | holder: String, | ||||
blob_hash: String, | blob_hash: String, | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |