BodyLengths.cs 822 B

1234567891011121314151617181920212223
  1. namespace Best.HTTP.Request.Upload
  2. {
  3. /// <summary>
  4. /// Provides constants representing different, special body lengths for HTTP requests with upload streams.
  5. /// </summary>
  6. public static class BodyLengths
  7. {
  8. /// <summary>
  9. /// The <see cref="UploadStreamBase"/>'s length is unknown and the plugin have to send data with '<c>chunked</c>' transfer-encoding.
  10. /// </summary>
  11. public const long UnknownWithChunkedTransferEncoding = -2;
  12. /// <summary>
  13. /// The <see cref="UploadStreamBase"/>'s length is unknown and the plugin have to send data as-is, without any encoding.
  14. /// </summary>
  15. public const long UnknownRaw = -1;
  16. /// <summary>
  17. /// No content to send.
  18. /// </summary>
  19. public const long NoBody = 0;
  20. }
  21. }