Creates a new instance of this class with the specified values.
Creates a new instance of this class with the specified values.
Encoding in which the request entity should be transferred.
Encoding in which the request entity should be transferred.
Some but not all servers will accept encodings other than Encoding.Identity. When such is known to be the case, using Encoding.Gzip, for example, can yield significant performance gains.
Length, in bytes, of the request entity.
Length, in bytes, of the request entity.
Note that this is different from the content length, which represents the number of bytes that will actually be transferred. This can be less than the entity's length if, for example, the gzip encoding is used.
Media type of the request entity.
Media type of the request entity.
Writes this request entity to the specified output stream, applying its transfer encoding if applicable.
Writes this request entity to the specified output stream, applying its transfer encoding if applicable.
Number of bytes that will be transferred when this request entity is sent to a remote host.
Number of bytes that will be transferred when this request entity is sent to a remote host.
Sets this request entity's transfer encoding to Encoding.Deflate.
Sets this request entity's transfer encoding to Encoding.Deflate.
Sets this request entity's transfer encoding to the specified value.
Sets this request entity's transfer encoding to the specified value.
Sets this request entity's transfer encoding to Encoding.Gzip.
Sets this request entity's transfer encoding to Encoding.Gzip.
Sets this request entity's media type.
Sets this request entity's media type.
Writes this request entity to the specified output stream.
Writes this request entity to the specified output stream.