Response MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The Response type exposes the following members.
Constructors

  NameDescription
Protected methodResponse
Initializes a new instance of the Response class
Back to Top
Methods

  NameDescription
Public methodAddHeader
Adds Http header
Public methodAppendCookie
Appends cookie to the response
Public methodCancelBuffered
Cancels the buffered content. Throws if the response is not Buffered
Protected methodDestructor (Overrides DisposableObject Destructor .)
Public methodDispose
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.)
Public methodEnsureObjectNotDisposed
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.)
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Protected methodFinalize (Inherited from DisposableObject.)
Public methodFlush
RESERVED FOR FUTURE USE. Flushes the internally buffered content
Public methodGetClientVar
Provides access to client state object which gets persisted as a cookie. Client states need to be used instead of cookies because of some HttpListener+Browser limitations that can not parse multiple cookies set into one Set-Cookie header
Public methodGetClientVarNames
Provides access to client state object which gets persisted as a cookie. Client states need to be used instead of cookies because of some HttpListener+Browser limitations that can not parse multiple cookies set into one Set-Cookie header
Public methodGetDirectOutputStreamForWriting
Returns output stream for direct output and marks response as beeing written into
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodRedirect
Configures response with redirect status and headers. This method DOES NOT ABORT the work pipeline,so the processing of filters and handlers continues unless 'work.Aborted = true' is issued in code. See also 'RedirectAndAbort(url)'
Public methodRedirectAndAbort
Configures response with redirect status and headers. This method also aborts the work pipeline,so the processing of filters and handlers does not continue. See also 'Redirect(url)'
Public methodSetCacheControlHeaders
Public methodSetClientVar
Provides access to client state object which gets persisted as a cookie. Client states need to be used instead of cookies because of some HttpListener+Browser limitations that can not parse multiple cookies set into one Set-Cookie header. Pass null for value to delete the var form the collection. The values are generally expected to be base64 encoded by the caller
Public methodSetNoCacheHeaders
Sets headers so all downstream, layers (browsers, proxies) do not cache response. If Force==true(default) then overrides existing headers with no cache. Returns true when headers were set
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodWrite(Object)
Writes an object into response as string
Public methodWrite(String)
Writes a string into response
Public methodWriteFile
Write the file to the client so client can download it. May set Buffered=false to use chunked encoding for big files
Public methodWriteJSON
Writes an object as JSON. Does nothing if object is null
Public methodWriteLine(Object)
Writes an object into response as string
Public methodWriteLine(String)
Writes a string into response
Public methodWriteStream
Write the contents of the stream to the client so client can download it. May set Buffered=false to use chunked encoding for big files
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Back to Top
Fields

  NameDescription
Public fieldStatic memberDEFAULT_DOWNLOAD_BUFFER_SIZE
Public fieldStatic memberMAX_DOWNLOAD_BUFFER_SIZE
Public fieldStatic memberMAX_DOWNLOAD_FILE_SIZE
Public fieldStatic memberMIN_DOWNLOAD_BUFFER_SIZE
Public fieldWork
Back to Top
Properties

  NameDescription
Public propertyBuffered
Determines whether the content is buffered locally. This property can not be set after the response has been written to
Public propertyClientVarsChanged
Returns true if current request processing cycle has changed the client var
Public propertyContentType
Http content type
Public propertyDisposed
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.)
Public propertyDisposeStarted
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.)
Public propertyEncoding
Gets/sets content encoding
Public propertyHeaders
Returns http headers of the response
Public propertyStatusCode
Http status code
Public propertyStatusDescription
Http status description
Public propertyWasWrittenTo
Returns true if some output has been performed
Back to Top
See Also