Table of Contents

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

string

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

string

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

int

HttpResponse

This method returns the underlying HttpResponse object.

public HttpResponse HttpResponse { get; }

Property Value

HttpResponse

Status

This property gets sets the status for the response, like '511 Not accessible'

public string Status { get; set; }

Property Value

string

Methods

AddHeader(string, string)

This method adds a header to the http response.

public void AddHeader(string pHeaderName, string pHeaderValue)

Parameters

pHeaderName string

The name of the header to set.

pHeaderValue string

The 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[]

Returns

Task