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: 8.2.23
Syntax
C#
public class ResponseDataSender

The ResponseDataSender type exposes the following members.

Constructors
  NameDescription
Public methodResponseDataSender
Creates a new ResponseDataSender instance.
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
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Public fieldStatic memberBUFFER_SIZE
Buffer size 64 kB.
Public fieldStatic memberCONNECTION_CHECK
Check connection every X buffering iterations.
Public fieldStatic memberCONNECTION_TIMEOUT
Connection timeout (seconds).
Public fieldStatic memberRANGE_END
Range end constant
Public fieldStatic memberRANGE_START
Range start constant
Public fieldStatic memberSTREAM_LIMIT_SLEEP
Wait interval when stream limit was reached before next check.
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
See Also