Show / Hide Table of Contents

Class HSResponse

See HttpServerSession.MessageReceived.

public class HSResponse

Namespace: Au.Types
Assembly: Au.dll
Inheritance
object
HSResponse

Properties

Name Description
Content

Raw response content.

Headers

Response headers. Initially empty. The server later may add Date, Server, Content-Encoding, Content-Length.

Reason

Response reason phrase. Initially null.

Status

Response status code. Initially OK.

Methods

Name Description
SetContentJson<T>(object, Type, string)

JSON-serializes object of specified type, and sets HSResponse.Content. Also sets Content-Type header.

SetContentJson<T>(T, string)

JSON-serializes object of type T, and sets HSResponse.Content. Also sets Content-Type header.

SetContentText(string, string)

Sets response content text.