Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HttpHeaderAction

import type { HttpHeaderAction } from "https://googleapis.deno.dev/v1/compute:v1.ts";

The request and response header transformations that take effect before the request is passed along to the selected backendService.

interface HttpHeaderAction {
requestHeadersToAdd?: HttpHeaderOption[];
requestHeadersToRemove?: string[];
responseHeadersToAdd?: HttpHeaderOption[];
responseHeadersToRemove?: string[];
}

§Properties

§
requestHeadersToAdd?: HttpHeaderOption[]
[src]

Headers to add to a matching request before forwarding the request to the backendService.

§
requestHeadersToRemove?: string[]
[src]

A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.

§
responseHeadersToAdd?: HttpHeaderOption[]
[src]

Headers to add the response before sending the response back to the client.

§
responseHeadersToRemove?: string[]
[src]

A list of header names for headers that need to be removed from the response before sending the response back to the client.