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. |
string | domain |
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. |
string | path |
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. |
bool | specificDomain |
If false , the mapping applies to all subdomains of the domain specified by domain.
Otherwise it applies to the specific domain only. |
bool | specificPath |
If false , the mapping applies to all subpaths of the path specified by path.
Otherwise it applies to the specific path only. |
bool | skippable |
If true , the handler may be skipped if it returns null . |