HttpResponse
Wisej.Core.HttpResponse
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.2.0.0)
Encapsulates HTTP-response information from an ASP.NET operation.
C#
VB.NET
public class HttpResponse
Public Class HttpResponse
Adds the HTTP header to the response.
Writes an array of bytes to the HTTP output stream.
Parameter | Type | Description |
---|---|---|
buffer | The bytes to write to the output stream. |
Writes an array of bytes to the HTTP output stream.
Sends all currently buffered output to the client.
Throws:
Returns a redirect response (HTTP 301 or HTTP 302) to the client.
Writes the specified filePath to the current HTTP response stream without buffering it in memory.
Parameter | Type | Description |
---|---|---|
filePath | The path to the file to writ to the output stream. |
Throws:
Writes the specified part of a file directly to an HTTP response output stream without buffering it in memory.
Throws:
- PlatformNotSupportedException The out-of-process worker request is not supported.- or -The response is not using an HttpWriter object.
- ArgumentException The offset parameter is less than zero or greater than the file size.- or -The length parameter is less than -1 or greater than the value of the offset parameter plus the file size.
Writes an image to the HTTP response stream.
Parameter | Type | Description |
---|---|---|
image | ||
format |
Throws:
Copies a stream to the HTTP response stream.
Writes a string to the current HTTP response string.
Parameter | Type | Description |
---|---|---|
value | The string to write to the response stream. |
Writes an object to the HTTP response stream.
Parameter | Type | Description |
---|---|---|
obj | The object to write. |
Last modified 4mo ago