UNPKG

msw

Version:

Seamless REST/GraphQL API mocking library for browser and Node.js.

23 lines (20 loc) 1.01 kB
import { i as HttpResponseInit, H as HttpResponse } from '../../HttpResponse-DL-P1EeG.js'; import '@mswjs/interceptors'; import '../internal/isIterable.js'; import '../../typeUtils.js'; import 'graphql'; import '../matching/matchRequestUrl.js'; interface HttpResponseDecoratedInit extends HttpResponseInit { status: number; statusText: string; headers: Headers; } declare function normalizeResponseInit(init?: HttpResponseInit): HttpResponseDecoratedInit; declare function decorateResponse(response: HttpResponse<any>, init: HttpResponseDecoratedInit): Response; declare function getRawSetCookie(response: Response): string | undefined; /** * Copy the given response own properties, like internal symbols, * onto another response. Used for faithful internal copying of responses. */ declare function copyResponseOwnProperties(source: Response, target: Response): void; export { type HttpResponseDecoratedInit, copyResponseOwnProperties, decorateResponse, getRawSetCookie, normalizeResponseInit };