| ResponseDataSender Class |
Namespace: CMS.Helpers
public class ResponseDataSender
The ResponseDataSender type exposes the following members.
| Name | Description | |
|---|---|---|
| ResponseDataSender |
Creates a new ResponseDataSender instance.
|
| Name | Description | |
|---|---|---|
| GetRange |
Parses the range header from the request.
| |
| WriteBytes |
Streams the byte array to the response.
| |
| WriteFile |
Streams the data file to the response.
|
| Name | Description | |
|---|---|---|
| AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
| Name | Description | |
|---|---|---|
| BUFFER_SIZE |
Buffer size 64 kB.
| |
| CONNECTION_CHECK |
Check connection every X buffering iterations.
| |
| CONNECTION_TIMEOUT |
Connection timeout (seconds).
| |
| RANGE_END |
Range end constant
| |
| RANGE_START |
Range start constant
| |
| STREAM_LIMIT_SLEEP |
Wait interval when stream limit was reached before next check.
|
| Name | Description | |
|---|---|---|
| AcceptRange |
Indicates if resumable downloads should be supported for current file.
| |
| AcceptRanges |
Indicates whether range requests are enabled (ex. for resumable downloads). If false, the HTTP Handler
ignores the Range HTTP Header and returns the entire contents.
| |
| AreRangesValid |
Indicates whether ranges are valid.
TRUE: ranges are valid or request is not range request
FALSE: all other cases
| |
| Context |
Current HTTP context.
| |
| DataLength |
Size of data.
| |
| IsMultipart |
Indicates whether it is multipart range request.
| |
| IsRangeRequest |
Indicates whether it is range request.
| |
| LogCommunicationExceptions |
Whether to log exception caused by communication problems (e.g. when remote host closes the connection).
Log exceptions has to be set to TRUE.
| |
| LogExceptions |
Logs the exceptions caused by the process.
| |
| MaxByteStream |
Maximum streaming speed in bytes per second.
| |
| Ranges |
2D Array in format {{START_RANGE,END_RANGE},{START_RANGE, END_RANGE}}.
| |
| Response |
Current HTTP response.
|