Class clsBPwebResponse
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class provides a generic wrapper/interface for the HttpResponse used for processing the current request.
public class clsBPwebResponse
- Inheritance
-
clsBPwebResponse
- Inherited Members
- Extension Methods
Properties
ContentData
This method can be used to write binary data (for the passed binary string) directly into the response.
public string ContentData { set; }
Property Value
ContentType
Used to get/set the content type. This must be a full content type, like 'text/html'
public string ContentType { get; set; }
Property Value
Expires
This property gets/sets the expiration in minutes for this request. Use a negative value to expire instantly.
public int Expires { get; set; }
Property Value
HttpResponse
This method returns the underlying HttpResponse object.
public HttpResponse HttpResponse { get; }
Property Value
Status
This property gets sets the status for the response, like '511 Not accessible'
public string Status { get; set; }
Property Value
Methods
AddHeader(string, string)
This method adds a header to the http response.
public void AddHeader(string pHeaderName, string pHeaderValue)
Parameters
pHeaderName
stringThe name of the header to set.
pHeaderValue
stringThe value of the given header.
BinaryWriteAsync(byte[])
This method is used to write data to the response.
public Task BinaryWriteAsync(byte[] pDataToWrite)
Parameters
pDataToWrite
byte[]