Created
March 4, 2026 11:21
-
-
Save jacobsapps/06a2eb34514bd41634cc8952c3ebb589 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private func makeChunkRequest(sessionId: String, offset: Int64, totalBytes: Int64) -> URLRequest { | |
| var request = URLRequest(url: url("level3/uploads/\(sessionId)/chunk")) | |
| request.httpMethod = "PUT" | |
| request.setValue("application/octet-stream", forHTTPHeaderField: "Content-Type") | |
| request.setValue("\(offset)", forHTTPHeaderField: "Upload-Offset") | |
| request.setValue("\(totalBytes)", forHTTPHeaderField: "Upload-Length") | |
| return request | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment