MCPcopy Index your code
hub / github.com/callstack/agent-device / emitUploadAttemptStarted

Function emitUploadAttemptStarted

src/upload-stream.ts:200–212  ·  view source on GitHub ↗
(
  progress: UploadStreamProgressOptions | undefined,
  startOffset: number,
  totalBytes: number,
)

Source from the content-addressed store, hash-verified

198}
199
200function emitUploadAttemptStarted(
201 progress: UploadStreamProgressOptions | undefined,
202 startOffset: number,
203 totalBytes: number,
204): void {
205 progress?.onProgress?.({
206 type: startOffset > 0 ? 'resume' : 'start',
207 stage: progress.stage,
208 fileName: progress.fileName,
209 transferredBytes: startOffset,
210 totalBytes,
211 });
212}
213
214function buildUploadRequestHeaders(
215 headers: Record<string, string>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected