| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.Storage.Blobs.Specialized |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Constants used by the batching APIs. |
| | 8 | | /// </summary> |
| | 9 | | internal static class BatchConstants |
| | 10 | | { |
| | 11 | | public const int NoStatusCode = 0; |
| | 12 | | public const int RequestBufferSize = Constants.KB; |
| | 13 | | public const int ResponseLineSize = 4 * Constants.KB; |
| | 14 | | public const int ResponseBufferSize = 16 * Constants.KB; |
| | 15 | |
|
| | 16 | | public const string XmsVersionName = "x-ms-version"; |
| | 17 | | public const string XmsClientRequestIdName = "x-ms-client-request-id"; |
| | 18 | | public const string XmsReturnClientRequestIdName = "x-ms-return-client-request-id"; |
| | 19 | | public const string ContentIdName = "Content-ID"; |
| | 20 | | public const string ContentLengthName = "Content-Length"; |
| | 21 | |
|
| | 22 | | public const string MultipartContentTypePrefix = "multipart/mixed; boundary="; |
| | 23 | | public const string RequestContentType = "Content-Type: application/http"; |
| | 24 | | public const string RequestContentTransferEncoding = "Content-Transfer-Encoding: binary"; |
| | 25 | | public const string BatchSeparator = "--"; |
| | 26 | | public const string HttpVersion = "HTTP/1.1"; |
| | 27 | |
|
| 2 | 28 | | public static readonly string DelayedResponsePropertyName = $"{nameof(BlobBatchClient)}.{nameof(BlobBatchClient. |
| | 29 | | } |
| | 30 | | } |