Show / Hide Table of Contents

Class RoutingContext

Server side routing context

Inheritance
Object
RoutingContext
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Networking.Transports
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class RoutingContext

Methods

Define(String, Func<HttpListenerRequest, IHttpResponse>)

Register routing

Declaration
public void Define(string path, Func<HttpListenerRequest, IHttpResponse> action)
Parameters
Type Name Description
String path

Path to route

Func<HttpListenerRequest, IHttpResponse> action

Callback to manage request

Exec(String, HttpListenerRequest)

Call callback corresponding to path

Declaration
public IHttpResponse Exec(string path, HttpListenerRequest request)
Parameters
Type Name Description
String path

HTTP request path

HttpListenerRequest request

Request received by HttpListener

Returns
Type Description
IHttpResponse

Response

In This Article
Back to top Generated by DocFX