Skip to main content
Module

x/gotenberg/mod.ts>handleResponse

A gotenberg client for Deno
Latest
function handleResponse
import { handleResponse } from "https://deno.land/x/gotenberg@0.4.0/mod.ts";

Response handler to handle responses that are a pdf file

NOTE: if used for a response that returns a zip file you might encounter errors in your code as this function assumes you know that you don't get a zip file

Parameters

r: Response | Promise<Response>

Response or Promise of Response to the Request to the gotenberg API

Returns

Promise<Asset>

Asset file