Type Alias: HTTPServiceEntrypointOptions
HTTPServiceEntrypointOptions =
object
The options of httpServiceEntrypoint.
Properties
host?
optionalhost?:string
The host or address the server listens on.
Default
all the interfaceslimit?
optionallimit?:number
The largest request body, in bytes; a larger one is answered with 413 and an error response.
Default
10485760 (10 MiB)listening?
optionallistening?: (server) =>void|Promise<void>
Run once the server listens, with the server (to read the port picked for port 0). A failure fails the entrypoint start.
Parameters
server
Server
Returns
void | Promise<void>
middlewares?
optionalmiddlewares?:MiddlewareDefinition[]
The middlewares of this adapter's actions, run after the entrypoint's global middlewares.
name?
optionalname?:string
The adapter name, to tell apart several service adapters of one entrypoint.
path?
optionalpath?:string
The path receiving the requests (POST). The event stream is served on events under it (/api → /api/events).
Default
'/'port?
optionalport?:number
The port the server listens on; 0 picks a random free port. The entrypoint fails to start when the port is in use.
Default
3000