MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / attach

Method attach

src/upload/uploader.rs:175–178  ·  view source on GitHub ↗

Attach this range as the body of `request`. The body is rebuilt on every call, since a streamed body is consumed by the request that sends it.

(&self, request: reqwest::RequestBuilder)

Source from the content-addressed store, hash-verified

173 /// Attach this range as the body of `request`. The body is rebuilt on every call,
174 /// since a streamed body is consumed by the request that sends it.
175 async fn attach(&self, request: reqwest::RequestBuilder) -> Result<reqwest::RequestBuilder> {
176 let body = self.content.body(self.offset, self.length).await?;
177 Ok(request.header("Content-Length", self.length).body(body))
178 }
179}
180
181/// Failure of one attempt of an upload request

Callers 1

upload_profile_archiveFunction · 0.80

Calls 1

bodyMethod · 0.80

Tested by

no test coverage detected