MCPcopy Create free account
hub / github.com/denoland/std / parseProblemDetailsResponse

Function parseProblemDetailsResponse

http/unstable_problem_details.ts:379–384  ·  view source on GitHub ↗
(input: Response)

Source from the content-addressed store, hash-verified

377 * ```
378 */
379export async function parseProblemDetailsResponse<
380 T extends ProblemDetailsExtensions = Record<string, never>,
381>(input: Response): Promise<ProblemDetails<T>> {
382 const raw = await input.json();
383 return normalizeParsedProblemDetails(raw) as ProblemDetails<T>;
384}
385
386/**
387 * Type guard that checks whether a `Response` has an

Calls 1

Tested by

no test coverage detected