HttpServerRequest Interface

Deprecated  in 3.6. The RPC system will be significantly refactored (or replaced) in version 5.0.

An HTTP server request object.

Extends

Methods

Name Description
destroy(error?: Error): HttpServerRequest    
header(field: string): undefined | string    
setTimeout(msecs: number, callback: () => void): void    
setTimeout(msecs: number, callback: () => void): HttpServerRequest    

Properties

Name Type Description
aborted boolean    
body string | Buffer    
complete boolean    
connection any    
headers { T }    
httpVersion string    
httpVersionMajor number    
httpVersionMinor number    
ip undefined | string    
method string    
path string    
rawHeaders string[]    
rawTrailers string[]    
socket any    
statusCode undefined | number    
statusMessage undefined | string    
trailers { T }    
url undefined | string    

Defined in

Last Updated: 20 June, 2023