Click or drag to resize

HttpServerResponse Methods

The HttpServerResponse type exposes the following members.

Methods
 NameDescription
Public methodCloneEvents Clones the events of the HTTP Request Response.
(Inherited from HttpRequestResponse)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFinalizeHeader This method finalizes the HTTP header. It sets the correct value of the Content-Length header and sets the HTTP version header to 1.1.
(Overrides HttpOutgoingRequestResponseFinalizeHeader)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSendError(Int32, String) Wraps the provided error message into an HTML document and puts the resulting document into ContentBytes. This method always sets the ResponseText to ERROR.
Public methodSendError(Int32, String, Exception) Wraps the provided System.Exception object, including the exception type name, exception message and full stacktrace into an HTML document and puts the resulting document into ContentBytes.
Public methodSendError(Int32, String, String) Wraps the provided error message into an HTML document and puts the resulting document into ContentBytes.
Public methodSendErrorWithCustomBody Allows to set custom error messages. Unlike the SendError methods, this method doesn't wrap the provided text into any HTML tags. The provided response body is used as is.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodTriggerOnTransferEnd Trigger the OnTransferEnd Event Handler
(Inherited from HttpRequestResponse)
Protected methodTriggerOnTransferProgress Trigger the OnTransferProgress Event Handler
(Inherited from HttpRequestResponse)
Protected methodTriggerOnTransferStart Trigger the OnTransferStart Event Handler
(Inherited from HttpRequestResponse)
Top
See Also