Interface: IHttpRouter
Defined in: service-core/src/http/types.ts:78
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:90
listenPort
listenPort:
number
Defined in: service-core/src/http/types.ts:91
Methods
close()
close():
void
Defined in: service-core/src/http/types.ts:89
Returns
void
delete()
delete(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:83
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
get()
get(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:80
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
head()
head(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:85
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
listen()
listen(
host,port):Promise<void>
Defined in: service-core/src/http/types.ts:88
Parameters
host
string
port
number
Returns
Promise<void>
options()
options(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:86
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
patch()
patch(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:84
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
post()
post(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:81
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
put()
put(
path, ...handlers):this
Defined in: service-core/src/http/types.ts:82
Parameters
path
string
handlers
...RequestHandler[]
Returns
this
use()
use(...
handlers):this
Defined in: service-core/src/http/types.ts:79
Parameters
handlers
...RequestHandler[]
Returns
this
ws()
ws(
path,handlers,wsOptions?,upgradeAuth?):this
Defined in: service-core/src/http/types.ts:87
Parameters
path
string
handlers
wsOptions?
any
upgradeAuth?
any
Returns
this