import { Drash } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/deps.ts";
const { Response } = Drash;
Methods
Delete a cookie for the response.
Set the body of this response as a downloaded type given the filepath, filename, and content type of the downloadable type.
Set the body of this response as the contents of the given filepath. The Content-Type header will be set automatically based on the extension of the filepath.
Set the body of this response as HTML.
Set the body of this response as JSON.
This method allows users to make this.response.render()
calls in
resources. This method is also used by Tengine:
https://github.com/drashland/deno-drash-middleware/tree/master/tengine
Set a cookie on the response to be handled by the client.
Set the body of this response as text.
Set the body of this response as XML.