Skip to content

ServerResponse

Nodepod API


Nodepod API / src / http / ServerResponse

Defined in: src/polyfills/http.ts:178

_ceiling: number

Defined in: src/polyfills/events.ts:85

Writable._ceiling


_registry: Map<string, EventHandler[]>

Defined in: src/polyfills/events.ts:84

Writable._registry


_writableState: any

Defined in: src/polyfills/stream.ts:637

Writable._writableState


closed: boolean

Defined in: src/polyfills/stream.ts:632

Writable.closed


connection: TcpSocket | null

Defined in: src/polyfills/http.ts:186


destroyed: boolean

Defined in: src/polyfills/stream.ts:631

Writable.destroyed


errored: Error | null

Defined in: src/polyfills/stream.ts:633

ServerResponse.errored


finished: boolean

Defined in: src/polyfills/http.ts:182


headersSent: boolean

Defined in: src/polyfills/http.ts:181


req: IncomingMessage

Defined in: src/polyfills/http.ts:185


sendDate: boolean

Defined in: src/polyfills/http.ts:183


socket: TcpSocket | null

Defined in: src/polyfills/http.ts:184


statusCode: number

Defined in: src/polyfills/http.ts:179


statusMessage: string

Defined in: src/polyfills/http.ts:180


writable: boolean

Defined in: src/polyfills/stream.ts:627

Writable.writable


writableCorked: number

Defined in: src/polyfills/stream.ts:636

Writable.writableCorked


writableEnded: boolean

Defined in: src/polyfills/stream.ts:628

Writable.writableEnded


writableFinished: boolean

Defined in: src/polyfills/stream.ts:629

Writable.writableFinished


writableHighWaterMark: number

Defined in: src/polyfills/stream.ts:635

Writable.writableHighWaterMark


readonly writableLength: number

Defined in: src/polyfills/stream.ts:642

Writable.writableLength


writableNeedDrain: boolean

Defined in: src/polyfills/stream.ts:630

Writable.writableNeedDrain


writableObjectMode: boolean

Defined in: src/polyfills/stream.ts:634

Writable.writableObjectMode

_collectedBody(): Buffer

Defined in: src/polyfills/http.ts:211

Buffer


_collectedBodyText(): string

Defined in: src/polyfills/http.ts:212

string


_destroy(err, cb): void

Defined in: src/polyfills/stream.ts:641

Error | null

(err?) => void

void

Writable._destroy


_final(callback): void

Defined in: src/polyfills/stream.ts:640

(err?) => void

void

Writable._final


_implicitHeader(): void

Defined in: src/polyfills/http.ts:198

void


_onComplete(fn): void

Defined in: src/polyfills/http.ts:187

(r) => void

void


_write(chunk, encoding, callback): void

Defined in: src/polyfills/stream.ts:638

any

string

(err?) => void

void

Writable._write


optional _writev(chunks, callback): void

Defined in: src/polyfills/stream.ts:639

object[]

(err?) => void

void

Writable._writev


addListener(name, handler): this

Defined in: src/polyfills/events.ts:86

string

EventHandler

this

Writable.addListener


addTrailers(headers): void

Defined in: src/polyfills/http.ts:210

Record<string, string>

void


appendHeader(key, val): this

Defined in: src/polyfills/http.ts:195

string

string | string[]

this


assignSocket(socket): void

Defined in: src/polyfills/http.ts:188

TcpSocket

void


close(cb?): void

Defined in: src/polyfills/stream.ts:647

(err?) => void

void

Writable.close


cork(): void

Defined in: src/polyfills/stream.ts:649

void

Writable.cork


destroy(fault?): this

Defined in: src/polyfills/stream.ts:648

Error

this

Writable.destroy


detachSocket(socket): void

Defined in: src/polyfills/http.ts:189

TcpSocket

void


emit(name, …payload): boolean

Defined in: src/polyfills/events.ts:92

string

unknown[]

boolean

Writable.emit


end(dataOrCb?, encOrCb?, cb?): this

Defined in: src/polyfills/http.ts:204

any

any

any

this

Writable.end


eventNames(): string[]

Defined in: src/polyfills/events.ts:96

string[]

Writable.eventNames


flushHeaders(): void

Defined in: src/polyfills/http.ts:197

void


getBuffer(): Buffer

Defined in: src/polyfills/stream.ts:645

Buffer

Writable.getBuffer


getBufferAsString(enc?): string

Defined in: src/polyfills/stream.ts:646

BufferEncoding

string

Writable.getBufferAsString


getHeader(key): string | string[] | undefined

Defined in: src/polyfills/http.ts:191

string

string | string[] | undefined


getHeaderNames(): string[]

Defined in: src/polyfills/http.ts:193

string[]


getHeaders(): Record<string, string | string[]>

Defined in: src/polyfills/http.ts:192

Record<string, string | string[]>


getMaxListeners(): number

Defined in: src/polyfills/events.ts:98

number

Writable.getMaxListeners


hasHeader(key): boolean

Defined in: src/polyfills/http.ts:194

string

boolean


json(obj): this

Defined in: src/polyfills/http.ts:207

unknown

this


listenerCount(name): number

Defined in: src/polyfills/events.ts:95

string

number

Writable.listenerCount


listeners(name): EventHandler[]

Defined in: src/polyfills/events.ts:93

string

EventHandler[]

Writable.listeners


off(name, handler): this

Defined in: src/polyfills/events.ts:90

string

EventHandler

this

Writable.off


on(name, handler): this

Defined in: src/polyfills/events.ts:87

string

EventHandler

this

Writable.on


once(name, handler): this

Defined in: src/polyfills/events.ts:88

string

EventHandler

this

Writable.once


prependListener(name, handler): this

Defined in: src/polyfills/events.ts:99

string

EventHandler

this

Writable.prependListener


prependOnceListener(name, handler): this

Defined in: src/polyfills/events.ts:100

string

EventHandler

this

Writable.prependOnceListener


rawListeners(name): EventHandler[]

Defined in: src/polyfills/events.ts:94

string

EventHandler[]

Writable.rawListeners


redirect(target, loc?): void

Defined in: src/polyfills/http.ts:209

string | number

string

void


removeAllListeners(name?): this

Defined in: src/polyfills/events.ts:91

string

this

Writable.removeAllListeners


removeHeader(key): void

Defined in: src/polyfills/http.ts:196

string

void


removeListener(name, handler): this

Defined in: src/polyfills/events.ts:89

string

EventHandler

this

Writable.removeListener


send(payload): this

Defined in: src/polyfills/http.ts:205

string | object | Buffer<ArrayBufferLike>

this


setDefaultEncoding(enc): this

Defined in: src/polyfills/stream.ts:651

string

this

Writable.setDefaultEncoding


setHeader(key, val): this

Defined in: src/polyfills/http.ts:190

string

string | number | string[]

this


setMaxListeners(limit): this

Defined in: src/polyfills/events.ts:97

number

this

Writable.setMaxListeners


setTimeout(ms, handler?): this

Defined in: src/polyfills/http.ts:206

number

() => void

this


status(c): this

Defined in: src/polyfills/http.ts:208

number

this


uncork(): void

Defined in: src/polyfills/stream.ts:650

void

Writable.uncork


write(data, encOrCb?, cb?): boolean

Defined in: src/polyfills/http.ts:203

any

any

any

boolean

Writable.write


writeContinue(): void

Defined in: src/polyfills/http.ts:199

void


writeEarlyHints(hints, cb?): void

Defined in: src/polyfills/http.ts:201

Record<string, string | string[]>

() => void

void


writeHead(code, msgOrHdrs?, extraHdrs?): this

Defined in: src/polyfills/http.ts:202

number

any

any

this


writeProcessing(): void

Defined in: src/polyfills/http.ts:200

void