HttpServerRequest Interface

An HTTP server request object.

Extends

  • Readable

Methods

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

Properties

Name Type Description
body string | Buffer    
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: 11 June, 2024