MCPcopy
hub / github.com/FoalTS/foal / isHttpResponseMovedPermanently

Function isHttpResponseMovedPermanently

packages/core/src/core/http/http-responses.ts:449–452  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

447 * instance of HttpResponseMovedPermanently. False otherwise.
448 */
449export function isHttpResponseMovedPermanently(obj: any): obj is HttpResponseMovedPermanently {
450 return obj instanceof HttpResponseMovedPermanently ||
451 (typeof obj === 'object' && obj !== null && obj.isHttpResponseMovedPermanently === true);
452}
453
454/**
455 * Represent an HTTP response with the status 302 - FOUND.

Callers 4

sendResponseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected