Class: RouterNode
Constructors
new RouterNode()
new RouterNode(
parent
:RouterBranch
):RouterNode
Parameters
Parameter | Type |
---|---|
parent | RouterBranch |
Returns
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:17
Properties
#methods
private
readonly
#methods:Collection
<"GET"
|"HEAD"
|"POST"
|"PUT"
|"DELETE"
|"CONNECT"
|"OPTIONS"
|"TRACE"
|"PATCH"
|"ACL"
|"BIND"
|"CHECKOUT"
|"COPY"
|"LINK"
|"LOCK"
|"M-SEARCH"
|"MERGE"
|"MKACTIVITY"
|"MKCALENDAR"
|"MKCOL"
|"MOVE"
|"NOTIFY"
|"PROPFIND"
|"PROPPATCH"
|"PURGE"
|"QUERY"
|"REBIND"
|"REPORT"
|"SEARCH"
|"SOURCE"
|"SUBSCRIBE"
|"UNBIND"
|"UNLINK"
|"UNLOCK"
|"UNSUBSCRIBE"
,Route
<RouteOptions
>>
The methods this node supports.
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:15
parent
readonly
parent:RouterBranch
The branch containing this node.
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:10
Accessors
path
Get Signature
get path():
string
Returns
string
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:21
Methods
delete()
delete(
method
:"GET"
|"HEAD"
|"POST"
|"PUT"
|"DELETE"
|"CONNECT"
|"OPTIONS"
|"TRACE"
|"PATCH"
|"ACL"
|"BIND"
|"CHECKOUT"
|"COPY"
|"LINK"
|"LOCK"
|"M-SEARCH"
|"MERGE"
|"MKACTIVITY"
|"MKCALENDAR"
|"MKCOL"
|"MOVE"
|"NOTIFY"
|"PROPFIND"
|"PROPPATCH"
|"PURGE"
|"QUERY"
|"REBIND"
|"REPORT"
|"SEARCH"
|"SOURCE"
|"SUBSCRIBE"
|"UNBIND"
|"UNLINK"
|"UNLOCK"
|"UNSUBSCRIBE"
,route
:Route
<RouteOptions
>):boolean
Parameters
Parameter | Type |
---|---|
method | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH" | "ACL" | "BIND" | "CHECKOUT" | "COPY" | "LINK" | "LOCK" | "M-SEARCH" | "MERGE" | "MKACTIVITY" | "MKCALENDAR" | "MKCOL" | "MOVE" | "NOTIFY" | "PROPFIND" | "PROPPATCH" | "PURGE" | "QUERY" | "REBIND" | "REPORT" | "SEARCH" | "SOURCE" | "SUBSCRIBE" | "UNBIND" | "UNLINK" | "UNLOCK" | "UNSUBSCRIBE" |
route | Route <RouteOptions > |
Returns
boolean
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:49
extractParameters()
extractParameters(
parts
: readonlystring
[]):Record
<string
,string
>
Parameters
Parameter | Type |
---|---|
parts | readonly string [] |
Returns
Record
<string
, string
>
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:25
get()
get(
method
:"GET"
|"HEAD"
|"POST"
|"PUT"
|"DELETE"
|"CONNECT"
|"OPTIONS"
|"TRACE"
|"PATCH"
|"ACL"
|"BIND"
|"CHECKOUT"
|"COPY"
|"LINK"
|"LOCK"
|"M-SEARCH"
|"MERGE"
|"MKACTIVITY"
|"MKCALENDAR"
|"MKCOL"
|"MOVE"
|"NOTIFY"
|"PROPFIND"
|"PROPPATCH"
|"PURGE"
|"QUERY"
|"REBIND"
|"REPORT"
|"SEARCH"
|"SOURCE"
|"SUBSCRIBE"
|"UNBIND"
|"UNLINK"
|"UNLOCK"
|"UNSUBSCRIBE"
):null
|Route
<RouteOptions
>
Parameters
Parameter | Type |
---|---|
method | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH" | "ACL" | "BIND" | "CHECKOUT" | "COPY" | "LINK" | "LOCK" | "M-SEARCH" | "MERGE" | "MKACTIVITY" | "MKCALENDAR" | "MKCOL" | "MOVE" | "NOTIFY" | "PROPFIND" | "PROPPATCH" | "PURGE" | "QUERY" | "REBIND" | "REPORT" | "SEARCH" | "SOURCE" | "SUBSCRIBE" | "UNBIND" | "UNLINK" | "UNLOCK" | "UNSUBSCRIBE" |
Returns
null
| Route
<RouteOptions
>
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:40
methods()
methods():
IterableIterator
<"GET"
|"HEAD"
|"POST"
|"PUT"
|"DELETE"
|"CONNECT"
|"OPTIONS"
|"TRACE"
|"PATCH"
|"ACL"
|"BIND"
|"CHECKOUT"
|"COPY"
|"LINK"
|"LOCK"
|"M-SEARCH"
|"MERGE"
|"MKACTIVITY"
|"MKCALENDAR"
|"MKCOL"
|"MOVE"
|"NOTIFY"
|"PROPFIND"
|"PROPPATCH"
|"PURGE"
|"QUERY"
|"REBIND"
|"REPORT"
|"SEARCH"
|"SOURCE"
|"SUBSCRIBE"
|"UNBIND"
|"UNLINK"
|"UNLOCK"
|"UNSUBSCRIBE"
>
Returns
IterableIterator
<"GET"
| "HEAD"
| "POST"
| "PUT"
| "DELETE"
| "CONNECT"
| "OPTIONS"
| "TRACE"
| "PATCH"
| "ACL"
| "BIND"
| "CHECKOUT"
| "COPY"
| "LINK"
| "LOCK"
| "M-SEARCH"
| "MERGE"
| "MKACTIVITY"
| "MKCALENDAR"
| "MKCOL"
| "MOVE"
| "NOTIFY"
| "PROPFIND"
| "PROPPATCH"
| "PURGE"
| "QUERY"
| "REBIND"
| "REPORT"
| "SEARCH"
| "SOURCE"
| "SUBSCRIBE"
| "UNBIND"
| "UNLINK"
| "UNLOCK"
| "UNSUBSCRIBE"
>
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:59
set()
set(
method
:"GET"
|"HEAD"
|"POST"
|"PUT"
|"DELETE"
|"CONNECT"
|"OPTIONS"
|"TRACE"
|"PATCH"
|"ACL"
|"BIND"
|"CHECKOUT"
|"COPY"
|"LINK"
|"LOCK"
|"M-SEARCH"
|"MERGE"
|"MKACTIVITY"
|"MKCALENDAR"
|"MKCOL"
|"MOVE"
|"NOTIFY"
|"PROPFIND"
|"PROPPATCH"
|"PURGE"
|"QUERY"
|"REBIND"
|"REPORT"
|"SEARCH"
|"SOURCE"
|"SUBSCRIBE"
|"UNBIND"
|"UNLINK"
|"UNLOCK"
|"UNSUBSCRIBE"
,route
:Route
<RouteOptions
>):this
Parameters
Parameter | Type |
---|---|
method | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH" | "ACL" | "BIND" | "CHECKOUT" | "COPY" | "LINK" | "LOCK" | "M-SEARCH" | "MERGE" | "MKACTIVITY" | "MKCALENDAR" | "MKCOL" | "MOVE" | "NOTIFY" | "PROPFIND" | "PROPPATCH" | "PURGE" | "QUERY" | "REBIND" | "REPORT" | "SEARCH" | "SOURCE" | "SUBSCRIBE" | "UNBIND" | "UNLINK" | "UNLOCK" | "UNSUBSCRIBE" |
route | Route <RouteOptions > |
Returns
this
Defined in
projects/plugins/packages/api/src/lib/structures/router/RouterNode.ts:44