MCPcopy
hub / github.com/nodejs/undici / ok

Method ok

lib/web/fetch/response.js:192–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191 // Returns whether response’s status is an ok status.
192 get ok () {
193 webidl.brandCheck(this, Response)
194
195 // The ok getter steps are to return true if this’s response’s status is an
196 // ok status; otherwise false.
197 return this.#state.status >= 200 && this.#state.status <= 299
198 }
199
200 // Returns response’s status message.
201 get statusText () {

Callers 15

stream-compat.jsFile · 0.80
issue-4880.jsFile · 0.80
http2-body.jsFile · 0.80
onRequestStartFunction · 0.80
http2-goaway.jsFile · 0.80
pool.jsFile · 0.80
onResponseEndFunction · 0.80
client-pipeline.jsFile · 0.80
timers.jsFile · 0.80
client-post.jsFile · 0.80
upgrade-crlf.jsFile · 0.80

Calls 1

brandCheckMethod · 0.80

Tested by

no test coverage detected