Page Contents
Home > @loopback/rest > RestBindings
RestBindings namespace
RestServer-specific bindings
Signature:
export declare namespace RestBindings
Namespaces
| Namespace | Description |
|---|---|
| [Http](/doc/en/lb4/apidocs.rest.restbindings.http.html) | Request-specific bindings |
| [Operation](/doc/en/lb4/apidocs.rest.restbindings.operation.html) | |
| [SequenceActions](/doc/en/lb4/apidocs.rest.restbindings.sequenceactions.html) | Bindings for potential actions that could be used in a sequence |
Variables
| Variable | Description |
|---|---|
| [AJV\_FACTORY](/doc/en/lb4/apidocs.rest.restbindings.ajv_factory.html) | Binding key for AJV |
| [API\_SPEC](/doc/en/lb4/apidocs.rest.restbindings.api_spec.html) | Binding key for setting and injecting an OpenAPI spec |
| [BASE\_PATH](/doc/en/lb4/apidocs.rest.restbindings.base_path.html) | Internal binding key for basePath |
| [CONFIG](/doc/en/lb4/apidocs.rest.restbindings.config.html) | Binding key for setting and injecting RestComponentConfig |
| [ERROR\_WRITER\_OPTIONS](/doc/en/lb4/apidocs.rest.restbindings.error_writer_options.html) | Binding key for setting and injecting Reject action's error handling options. See https://github.com/loopbackio/strong-error-handler\#options for the list of available options. Please note that the flag `log` is not used by `@loopback/rest`. |
| [HANDLER](/doc/en/lb4/apidocs.rest.restbindings.handler.html) | Internal binding key for http-handler |
| [HOST](/doc/en/lb4/apidocs.rest.restbindings.host.html) | Binding key for setting and injecting the host name of RestServer |
| [HTTPS\_OPTIONS](/doc/en/lb4/apidocs.rest.restbindings.https_options.html) | Binding key for HTTPS options |
| [INVOKE\_MIDDLEWARE\_SERVICE](/doc/en/lb4/apidocs.rest.restbindings.invoke_middleware_service.html) | Binding key for setting and injecting a `invokeMiddleware` function for middleware based sequence |
| [OPERATION\_SPEC\_CURRENT](/doc/en/lb4/apidocs.rest.restbindings.operation_spec_current.html) | Binding key for setting and injecting an OpenAPI operation spec |
| [PATH](/doc/en/lb4/apidocs.rest.restbindings.path.html) | Binding key for setting and injecting the socket path of the RestServer |
| [PORT](/doc/en/lb4/apidocs.rest.restbindings.port.html) | Binding key for setting and injecting the port number of RestServer |
| [PROTOCOL](/doc/en/lb4/apidocs.rest.restbindings.protocol.html) | Binding key for setting and injecting the protocol of RestServer |
| [REQUEST\_BODY\_PARSER\_JSON](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser_json.html) | Binding key for request json body parser |
| [REQUEST\_BODY\_PARSER\_OPTIONS](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser_options.html) | Binding key for request body parser options |
| [REQUEST\_BODY\_PARSER\_RAW](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser_raw.html) | Binding key for request raw body parser |
| [REQUEST\_BODY\_PARSER\_STREAM](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser_stream.html) | Binding key for request raw body parser |
| [REQUEST\_BODY\_PARSER\_TEXT](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser_text.html) | Binding key for request text body parser |
| [REQUEST\_BODY\_PARSER\_URLENCODED](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser_urlencoded.html) | Binding key for request urlencoded body parser |
| [REQUEST\_BODY\_PARSER](/doc/en/lb4/apidocs.rest.restbindings.request_body_parser.html) | Binding key for request body parser |
| [ROUTER\_OPTIONS](/doc/en/lb4/apidocs.rest.restbindings.router_options.html) | |
| [ROUTER](/doc/en/lb4/apidocs.rest.restbindings.router.html) | Internal binding key for rest router |
| [ROUTES](/doc/en/lb4/apidocs.rest.restbindings.routes.html) | Namespace for REST routes |
| [SEQUENCE](/doc/en/lb4/apidocs.rest.restbindings.sequence.html) | Binding key for setting and injecting a Sequence |
| [SERVER](/doc/en/lb4/apidocs.rest.restbindings.server.html) | Binding key for the server itself |
| [URL](/doc/en/lb4/apidocs.rest.restbindings.url.html) | Binding key for setting and injecting the URL of RestServer |