HeaderResponse

data class HeaderResponse(val glob: String, val headers: Map<String, String>, val regex: String)

A Header specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.

Constructors

Link copied to clipboard
fun HeaderResponse(glob: String, headers: Map<String, String>, regex: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The user-supplied glob to match against the request URL path.

Link copied to clipboard

The additional headers to add to the response.

Link copied to clipboard

The user-supplied RE2 regular expression to match against the request URL path.