Click or drag to resize
ResponseDataSender Class
Class that writes data to the given context's response and handles multipart and range requests.
Inheritance Hierarchy
SystemObject
  CMS.HelpersResponseDataSender

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public class ResponseDataSender

The ResponseDataSender type exposes the following members.

Constructors
  NameDescription
Public methodResponseDataSender
Creates a new ResponseDataSender instance.
Top
Properties
  NameDescription
Public propertyAcceptRange
Indicates if resumable downloads should be supported for current file.
Public propertyStatic memberAcceptRanges
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.
Public propertyAreRangesValid
Indicates whether ranges are valid. TRUE: ranges are valid or request is not range request FALSE: all other cases
Protected propertyContext
Current HTTP context.
Public propertyDataLength
Size of data.
Public propertyIsMultipart
Indicates whether it is multipart range request.
Public propertyIsRangeRequest
Indicates whether it is range request.
Public propertyLogCommunicationExceptions
Whether to log exception caused by communication problems (e.g. when remote host closes the connection). Log exceptions has to be set to TRUE.
Public propertyLogExceptions
Logs the exceptions caused by the process.
Public propertyMaxByteStream
Maximum streaming speed in bytes per second.
Public propertyRanges
2D Array in format {{START_RANGE,END_RANGE},{START_RANGE, END_RANGE}}.
Protected propertyResponse
Current HTTP response.
Top
Methods
  NameDescription
Public methodGetRange
Parses the range header from the request.
Public methodWriteBytes
Streams the byte array to the response.
Public methodWriteFile
Streams the data file to the response.
Top
See Also