Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: UrlMapping(Func<HttpRequest, HttpResponse>, string, int?, string, bool, bool, bool)

Declaration

public UrlMapping(
    Func<HttpRequest, HttpResponse> handler,
    string domain = null,
    int? port = null,
    string path = null,
    bool specificDomain = false,
    bool specificPath = false,
    bool skippable = false
)

Summary

Initialises a new UrlMapping.

Parameters

Func<HttpRequest, HttpResponse>handler The request handler to map to.
stringdomain If null, the mapping applies to all domain names. Otherwise, the mapping applies to this domain and all subdomains or to this domain only, depending on the value of specificDomain.
int?port If null, the mapping applies to all ports; otherwise to the specified port only.
stringpath If null, the mapping applies to all URL paths. Otherwise, the mapping applies to this path and all subpaths or to this path only, depending on the value of specificPath.
boolspecificDomain If false, the mapping applies to all subdomains of the domain specified by domain. Otherwise it applies to the specific domain only.
boolspecificPath If false, the mapping applies to all subpaths of the path specified by path. Otherwise it applies to the specific path only.
boolskippable If true, the handler may be skipped if it returns null.