freeboard
Preparing search index...
gateway/src
startGatewayServer
Function startGatewayServer
startGatewayServer
(
options
?:
{
port
?:
number
;
host
?:
string
;
lookup
?:
{
(
hostname
:
string
,
family
:
number
)
:
Promise
<
LookupAddress
>
;
(
hostname
:
string
,
options
:
LookupOneOptions
)
:
Promise
<
LookupAddress
>
;
(
hostname
:
string
,
options
:
LookupAllOptions
)
:
Promise
<
LookupAddress
[]
>
;
(
hostname
:
string
,
options
:
LookupOptions
,
)
:
Promise
<
LookupAddress
|
LookupAddress
[]
>
;
(
hostname
:
string
)
:
Promise
<
LookupAddress
>
;
}
;
fetchFn
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
}
,
)
:
Server
<
typeof
IncomingMessage
,
typeof
ServerResponse
>
Start gateway HTTP server.
Parameters
Optional
options
:
{
port
?:
number
;
host
?:
string
;
lookup
?:
{
(
hostname
:
string
,
family
:
number
)
:
Promise
<
LookupAddress
>
;
(
hostname
:
string
,
options
:
LookupOneOptions
)
:
Promise
<
LookupAddress
>
;
(
hostname
:
string
,
options
:
LookupAllOptions
)
:
Promise
<
LookupAddress
[]
>
;
(
hostname
:
string
,
options
:
LookupOptions
,
)
:
Promise
<
LookupAddress
|
LookupAddress
[]
>
;
(
hostname
:
string
)
:
Promise
<
LookupAddress
>
;
}
;
fetchFn
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
}
= {}
Optional
port
?:
number
Optional
host
?:
string
Optional
lookup
?:
{
(
hostname
:
string
,
family
:
number
)
:
Promise
<
LookupAddress
>
;
(
hostname
:
string
,
options
:
LookupOneOptions
)
:
Promise
<
LookupAddress
>
;
(
hostname
:
string
,
options
:
LookupAllOptions
)
:
Promise
<
LookupAddress
[]
>
;
(
hostname
:
string
,
options
:
LookupOptions
,
)
:
Promise
<
LookupAddress
|
LookupAddress
[]
>
;
(
hostname
:
string
)
:
Promise
<
LookupAddress
>
;
}
Optional
fetchFn
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
Returns
Server
<
typeof
IncomingMessage
,
typeof
ServerResponse
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
freeboard
Loading...
Start gateway HTTP server.