2using System.Threading.Tasks;
45 Response.StatusCode = 200;
64 return this.
GET(Request, Response);
Plain text encoder/decoder.
const string DefaultContentType
text/plain
Base class for all asynchronous HTTP resources. An asynchronous resource responds outside of the meth...
Represents an HTTP request.
string RemoteEndPoint
Remote end-point.
string ResourceName
Name of resource.
Represets a response of an HTTP client request.
async Task SendResponse()
Sends the response back to the client. If the resource is synchronous, there's no need to call this m...
async Task Write(byte[] Data)
Returns binary data in the response.
Provides IP information about the caller.
WhatsMyEndpointResource(string ResourceName)
Provides IP information about the caller.
Task POST(HttpRequest Request, HttpResponse Response)
Executes the POST method on the resource.
bool AllowsGET
If the GET method is allowed.
async Task GET(HttpRequest Request, HttpResponse Response)
Executes the GET method on the resource.
override bool HandlesSubPaths
If the resource handles sub-paths.
override bool UserSessions
If the resource uses user sessions.
bool AllowsPOST
If the POST method is allowed.
GET Interface for HTTP resources.
POST Interface for HTTP resources.