Search
Preparing search index...
The search index is not available
u-http-server
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"http2"
Http2Server
Class Http2Server
Hierarchy
Server
Http2Server
Index
Constructors
constructor
Properties
connections
listening
max
Connections
default
Max
Listeners
Methods
add
Listener
address
close
emit
event
Names
get
Connections
get
Max
Listeners
listen
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
ref
remove
All
Listeners
remove
Listener
set
Max
Listeners
set
Timeout
unref
listener
Count
Constructors
Private
constructor
new
Http2
Server
(
)
:
Http2Server
Returns
Http2Server
Properties
connections
connections
:
number
listening
listening
:
boolean
max
Connections
max
Connections
:
number
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
"checkContinue"
, listener
:
function
)
:
this
add
Listener
(
event
:
"request"
, listener
:
function
)
:
this
add
Listener
(
event
:
"session"
, listener
:
function
)
:
this
add
Listener
(
event
:
"sessionError"
, listener
:
function
)
:
this
add
Listener
(
event
:
"stream"
, listener
:
function
)
:
this
add
Listener
(
event
:
"timeout"
, listener
:
function
)
:
this
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
"checkContinue"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"request"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"session"
listener:
function
(
session
:
ServerHttp2Session
)
:
void
Parameters
session:
ServerHttp2Session
Returns
void
Returns
this
Parameters
event:
"sessionError"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"stream"
listener:
function
(
stream
:
ServerHttp2Stream
, headers
:
IncomingHttpHeaders
, flags
:
number
)
:
void
Parameters
stream:
ServerHttp2Stream
headers:
IncomingHttpHeaders
flags:
number
Returns
void
Returns
this
Parameters
event:
"timeout"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
address
address
(
)
:
AddressInfo
|
string
|
null
Returns
AddressInfo
|
string
|
null
close
close
(
callback
?:
function
)
:
this
Parameters
Optional
callback:
function
(
err
?:
Error
)
:
void
Parameters
Optional
err:
Error
Returns
void
Returns
this
emit
emit
(
event
:
"checkContinue"
, request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
boolean
emit
(
event
:
"request"
, request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
boolean
emit
(
event
:
"session"
, session
:
ServerHttp2Session
)
:
boolean
emit
(
event
:
"sessionError"
, err
:
Error
)
:
boolean
emit
(
event
:
"stream"
, stream
:
ServerHttp2Stream
, headers
:
IncomingHttpHeaders
, flags
:
number
)
:
boolean
emit
(
event
:
"timeout"
)
:
boolean
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
"checkContinue"
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
boolean
Parameters
event:
"request"
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
boolean
Parameters
event:
"session"
session:
ServerHttp2Session
Returns
boolean
Parameters
event:
"sessionError"
err:
Error
Returns
boolean
Parameters
event:
"stream"
stream:
ServerHttp2Stream
headers:
IncomingHttpHeaders
flags:
number
Returns
boolean
Parameters
event:
"timeout"
Returns
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Connections
get
Connections
(
cb
:
function
)
:
void
Parameters
cb:
function
(
error
:
Error
|
null
, count
:
number
)
:
void
Parameters
error:
Error
|
null
count:
number
Returns
void
Returns
void
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listen
listen
(
port
?:
number
, hostname
?:
string
, backlog
?:
number
, listeningListener
?:
function
)
:
this
listen
(
port
?:
number
, hostname
?:
string
, listeningListener
?:
function
)
:
this
listen
(
port
?:
number
, backlog
?:
number
, listeningListener
?:
function
)
:
this
listen
(
port
?:
number
, listeningListener
?:
function
)
:
this
listen
(
path
:
string
, backlog
?:
number
, listeningListener
?:
function
)
:
this
listen
(
path
:
string
, listeningListener
?:
function
)
:
this
listen
(
options
:
ListenOptions
, listeningListener
?:
function
)
:
this
listen
(
handle
:
any
, backlog
?:
number
, listeningListener
?:
function
)
:
this
listen
(
handle
:
any
, listeningListener
?:
function
)
:
this
Parameters
Optional
port:
number
Optional
hostname:
string
Optional
backlog:
number
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
Optional
port:
number
Optional
hostname:
string
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
Optional
port:
number
Optional
backlog:
number
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
Optional
port:
number
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
path:
string
Optional
backlog:
number
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
path:
string
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
options:
ListenOptions
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
handle:
any
Optional
backlog:
number
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
handle:
any
Optional
listeningListener:
function
(
)
:
void
Returns
void
Returns
this
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
"checkContinue"
, listener
:
function
)
:
this
on
(
event
:
"request"
, listener
:
function
)
:
this
on
(
event
:
"session"
, listener
:
function
)
:
this
on
(
event
:
"sessionError"
, listener
:
function
)
:
this
on
(
event
:
"stream"
, listener
:
function
)
:
this
on
(
event
:
"timeout"
, listener
:
function
)
:
this
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
"checkContinue"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"request"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"session"
listener:
function
(
session
:
ServerHttp2Session
)
:
void
Parameters
session:
ServerHttp2Session
Returns
void
Returns
this
Parameters
event:
"sessionError"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"stream"
listener:
function
(
stream
:
ServerHttp2Stream
, headers
:
IncomingHttpHeaders
, flags
:
number
)
:
void
Parameters
stream:
ServerHttp2Stream
headers:
IncomingHttpHeaders
flags:
number
Returns
void
Returns
this
Parameters
event:
"timeout"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
"checkContinue"
, listener
:
function
)
:
this
once
(
event
:
"request"
, listener
:
function
)
:
this
once
(
event
:
"session"
, listener
:
function
)
:
this
once
(
event
:
"sessionError"
, listener
:
function
)
:
this
once
(
event
:
"stream"
, listener
:
function
)
:
this
once
(
event
:
"timeout"
, listener
:
function
)
:
this
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
"checkContinue"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"request"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"session"
listener:
function
(
session
:
ServerHttp2Session
)
:
void
Parameters
session:
ServerHttp2Session
Returns
void
Returns
this
Parameters
event:
"sessionError"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"stream"
listener:
function
(
stream
:
ServerHttp2Stream
, headers
:
IncomingHttpHeaders
, flags
:
number
)
:
void
Parameters
stream:
ServerHttp2Stream
headers:
IncomingHttpHeaders
flags:
number
Returns
void
Returns
this
Parameters
event:
"timeout"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
"checkContinue"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"request"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"session"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"sessionError"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"stream"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"timeout"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
"checkContinue"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"request"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"session"
listener:
function
(
session
:
ServerHttp2Session
)
:
void
Parameters
session:
ServerHttp2Session
Returns
void
Returns
this
Parameters
event:
"sessionError"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"stream"
listener:
function
(
stream
:
ServerHttp2Stream
, headers
:
IncomingHttpHeaders
, flags
:
number
)
:
void
Parameters
stream:
ServerHttp2Stream
headers:
IncomingHttpHeaders
flags:
number
Returns
void
Returns
this
Parameters
event:
"timeout"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
"checkContinue"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"request"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"session"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"sessionError"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"stream"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"timeout"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
"checkContinue"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"request"
listener:
function
(
request
:
Http2ServerRequest
, response
:
Http2ServerResponse
)
:
void
Parameters
request:
Http2ServerRequest
response:
Http2ServerResponse
Returns
void
Returns
this
Parameters
event:
"session"
listener:
function
(
session
:
ServerHttp2Session
)
:
void
Parameters
session:
ServerHttp2Session
Returns
void
Returns
this
Parameters
event:
"sessionError"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"stream"
listener:
function
(
stream
:
ServerHttp2Stream
, headers
:
IncomingHttpHeaders
, flags
:
number
)
:
void
Parameters
stream:
ServerHttp2Stream
headers:
IncomingHttpHeaders
flags:
number
Returns
void
Returns
this
Parameters
event:
"timeout"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
ref
ref
(
)
:
this
Returns
this
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
set
Timeout
set
Timeout
(
msec
?:
number
, callback
?:
function
)
:
this
Parameters
Optional
msec:
number
Optional
callback:
function
(
)
:
void
Returns
void
Returns
this
unref
unref
(
)
:
this
Returns
this
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
"http"
"http2"
constants
"https"
"net"
"tls"
generate
Self
Signed
Certificate
parse
Cookie
path
ToRegex
session
InMemory
Client
Http2
Session
Client
Http2
Stream
Http2
Secure
Server
Http2
Server
constructor
connections
listening
max
Connections
default
Max
Listeners
add
Listener
address
close
emit
event
Names
get
Connections
get
Max
Listeners
listen
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
ref
remove
All
Listeners
remove
Listener
set
Max
Listeners
set
Timeout
unref
listener
Count
Http2
Server
Request
Http2
Server
Response
Http2
Session
Http2
Stream
Server
Http2
Session
Server
Http2
Stream
Alternative
Service
Options
Client
Session
Options
Client
Session
Request
Options
Incoming
Http
Headers
Incoming
Http
Status
Header
Secure
Client
Session
Options
Secure
Server
Options
Secure
Server
Session
Options
Server
Options
Server
Session
Options
Server
Stream
File
Response
Options
Server
Stream
File
Response
Options
With
Error
Server
Stream
Response
Options
Session
Options
Session
State
Settings
Stat
Options
Stream
Priority
Options
Stream
State
connect
create
Secure
Server
create
Server
get
Default
Settings
get
Packed
Settings
get
Unpacked
Settings
Generated using
TypeDoc
since v4.0.0