Interface: IHttpRouter
Defined in: service-core/src/http/types.ts:86
Public surface shared by every HTTP router implementation (uWS-backed, Bun-backed, ...).
Server.ts depends only on this interface, never on a concrete router class, so the
underlying HTTP server can be swapped per-runtime without touching route registration.
Indexable
[
key:string]:any
Properties
isListening
readonlyisListening:boolean
Defined in: service-core/src/http/types.ts:98
listenPort
listenPort:
number
Defined in: service-core/src/http/types.ts:99
Methods
close()
close():
void
Defined in: service-core/src/http/types.ts:97
Returns
void
delete()
delete(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:91
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
get()
get(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:88
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
head()
head(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:93
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
listen()
listen(
host,port):Promise<void>
Defined in: service-core/src/http/types.ts:96
Parameters
host
string
port
number
Returns
Promise<void>
options()
options(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:94
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
patch()
patch(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:92
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
post()
post(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:89
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
put()
put(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:90
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
use()
use(...
handlers):this
Defined in: service-core/src/http/types.ts:87
Parameters
handlers
...RequestHandler[]
Returns
this
ws()
ws(
path,handlers,wsOptions?,upgradeAuth?):this
Defined in: service-core/src/http/types.ts:95
Parameters
path
string
handlers
wsOptions?
any
upgradeAuth?
any
Returns
this