UNPKG

@graphql-mesh/plugin-http-details-extensions

Version:
23 lines (22 loc) 616 B
import { Path } from '@envelop/core'; import { MeshPlugin, MeshPluginOptions } from '@graphql-mesh/types'; export interface MeshFetchHTTPInformation { sourceName: string; path: Path; request: { timestamp: number; url: string; method: string; headers: Record<string, string>; }; response: { timestamp: number; status: number; statusText: string; headers: Record<string, string>; }; responseTime: number; } export default function useIncludeHttpDetailsInExtensions(opts: MeshPluginOptions<{ if: any; }>): MeshPlugin<any>;