HttpServerRequest Interface

Deprecated  in 3.6. The RPC system will be significantly refactored (or replaced) in the future.

An HTTP server request object.

Extends

Methods

Name Description
destroy(error?: Error): this Destroy the stream.  
setTimeout(msecs: number, callback: () => void): void    
setTimeout(msecs: number, callback: () => void): this    

Properties

Name Type Description
aborted boolean    
body string | __global.Buffer    
complete boolean    
connection any    
header (field: string) => undefined | string    
headers [header: string]: string | string[] | undefined    
headersDistinct NodeJS.Dict<string[]>    
httpVersion string    
httpVersionMajor number    
httpVersionMinor number    
ip string | undefined    
method string    
path string    
rawHeaders string[]    
rawTrailers string[]    
socket any    
statusCode number | undefined    
statusMessage string | undefined    
trailers [key: string]: string | undefined    
trailersDistinct NodeJS.Dict<string[]>    
url string | undefined    

Defined in

Last Updated: 17 December, 2024