@loopback/docs
Version:
Documentation for LoopBack 4
740 lines (739 loc) • 21.9 kB
JSON
{
"metadata": {
"toolPackage": "@microsoft/api-extractor",
"toolVersion": "7.3.8",
"schemaVersion": 1003,
"oldestForwardsCompatibleVersion": 1001
},
"kind": "Package",
"canonicalReference": "@loopback/http-server!",
"docComment": "",
"name": "@loopback/http-server",
"members": [
{
"kind": "EntryPoint",
"canonicalReference": "@loopback/http-server!",
"name": "",
"members": [
{
"kind": "Interface",
"canonicalReference": "@loopback/http-server!HttpOptions:interface",
"docComment": "/**\n * HTTP server options\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "HttpOptions"
},
{
"kind": "Content",
"text": " extends "
},
{
"kind": "Reference",
"text": "ListenOptions"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "HttpOptions",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/http-server!HttpOptions#protocol:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "protocol"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Content",
"text": "'http'"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "protocol",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
}
],
"extendsTokenRanges": [
{
"startIndex": 3,
"endIndex": 5
}
]
},
{
"kind": "TypeAlias",
"canonicalReference": "@loopback/http-server!HttpProtocol:type",
"docComment": "/**\n * Supported protocols\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare type "
},
{
"kind": "Reference",
"text": "HttpProtocol"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Content",
"text": "'http' | 'https'"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "HttpProtocol",
"typeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
},
{
"kind": "Class",
"canonicalReference": "@loopback/http-server!HttpServer:class",
"docComment": "/**\n * HTTP / HTTPS server used by LoopBack's RestServer\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "HttpServer"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "HttpServer",
"members": [
{
"kind": "Constructor",
"canonicalReference": "@loopback/http-server!HttpServer:constructor(1)",
"docComment": "/**\n * Constructs a new instance of the `HttpServer` class\n *\n * @param - requestListener\n *\n * @param - serverOptions\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "constructor("
},
{
"kind": "Reference",
"text": "requestListener"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "RequestListener"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "serverOptions"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "HttpServerOptions"
},
{
"kind": "Content",
"text": ");"
}
],
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "requestListener",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
},
{
"parameterName": "serverOptions",
"parameterTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
]
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#address:member",
"docComment": "/**\n * Address of the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "address"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string | "
},
{
"kind": "Reference",
"text": "AddressInfo"
},
{
"kind": "Content",
"text": " | undefined"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "address",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 6
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#host:member",
"docComment": "/**\n * Host of the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "host"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string | undefined"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "host",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#listening:member",
"docComment": "/**\n * State of the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "listening"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "boolean"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "listening",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#port:member",
"docComment": "/**\n * Port number of the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "port"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "number"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "port",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#protocol:member",
"docComment": "/**\n * Protocol of the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "protocol"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "HttpProtocol"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "protocol",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#server:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "server"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "http"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "Server"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "https"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "Server"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "server",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 10
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/http-server!HttpServer#start:member(1)",
"docComment": "/**\n * Starts the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "start"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "start"
},
{
"kind": "Method",
"canonicalReference": "@loopback/http-server!HttpServer#stop:member(1)",
"docComment": "/**\n * Stops the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "stop"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "stop"
},
{
"kind": "Property",
"canonicalReference": "@loopback/http-server!HttpServer#url:member",
"docComment": "/**\n * URL of the HTTP / HTTPS server\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "url"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "url",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
}
],
"implementsTokenRanges": []
},
{
"kind": "TypeAlias",
"canonicalReference": "@loopback/http-server!HttpServerOptions:type",
"docComment": "/**\n * Possible server options\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare type "
},
{
"kind": "Reference",
"text": "HttpServerOptions"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Reference",
"text": "HttpOptions"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "HttpsOptions"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "HttpServerOptions",
"typeTokenRange": {
"startIndex": 3,
"endIndex": 6
}
},
{
"kind": "Interface",
"canonicalReference": "@loopback/http-server!HttpsOptions:interface",
"docComment": "/**\n * HTTPS server options\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "HttpsOptions"
},
{
"kind": "Content",
"text": " extends "
},
{
"kind": "Reference",
"text": "ListenOptions"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "https"
},
{
"kind": "Content",
"text": "."
},
{
"kind": "Reference",
"text": "ServerOptions"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "HttpsOptions",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/http-server!HttpsOptions#protocol:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "protocol"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "'https'"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "protocol",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
}
],
"extendsTokenRanges": [
{
"startIndex": 3,
"endIndex": 4
},
{
"startIndex": 5,
"endIndex": 9
}
]
},
{
"kind": "TypeAlias",
"canonicalReference": "@loopback/http-server!RequestListener:type",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare type "
},
{
"kind": "Reference",
"text": "RequestListener"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "req"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "IncomingMessage"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "res"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "ServerResponse"
},
{
"kind": "Content",
"text": ") => void"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "RequestListener",
"typeTokenRange": {
"startIndex": 3,
"endIndex": 12
}
}
]
}
]
}