Show / Hide Table of Contents

Class HSMessage

See HttpServerSession.MessageReceived.

public class HSMessage

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

Properties

Name Description
Content

Raw content. For example POST data as UTF-8 text or binary.

ContentType

Content-Type header info.

Headers

Headers. Case-insensitive.

Method

Method, like "GET" or "POST".

Multipart

Parts of multipart content. For example of POST content with Content-Type: multipart/form-data.

RawTarget

Target, like "/file.html" or "/file.html?a=1&b=2" or "/". May be URL-encoded.

TargetPath

Target without URL parameters, like "/file.html" or "/". Not URL-encoded.

Text

HSMessage.Content converted to text.

UrlParameters

URL parameters (query string). Not URL-encoded.

Urlencoded

Keys/values from POST content with Content-Type: application/x-www-form-urlencoded.

Methods

Name Description
Json(Type)

JSON-deserializes HSMessage.Content to object of specified type.

Json<T>()

JSON-deserializes HSMessage.Content to object of type T.