---
title: fsthttp
summary: Package fsthttp provides HTTP functionality for Fastly's Compute environment.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/
---

**Kind:** Module  
**Package:** compute-sdk-go v1.11.0  
**Path:** `github.com/fastly/compute-sdk-go/fsthttp`

Package fsthttp provides HTTP functionality for Fastly's Compute
environment.

A Compute program can be thought of as an HTTP request handler. Each
execution is triggered by an incoming request from a client, and is expected
to respond to that request before terminating. The Serve function provides a
Handler-style interface to that Request and its ResponseWriter.

The types in this package are similar to, but not the same as, corresponding
types in the standard library's package net/http. Refer to the documentation
for important caveats about usage.

## Modules

| Name | Summary |
| --- | --- |
| [imageopto](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/) |  |

## Structs

| Name | Summary |
| --- | --- |
| [Backend](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Backend/) | Backend is a fastly backend |
| [BackendHealthcheckOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.BackendHealthcheckOptions/) |  |
| [BackendOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.BackendOptions/) | BackendOption is a builder for the configuration of a dynamic backend. |
| [BotDetectionResult](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.BotDetectionResult/) |  |
| [CacheOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.CacheOptions/) | CacheOptions control caching behavior for outgoing requests. |
| [CandidateResponse](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.CandidateResponse/) | CandidateResponse is a response from a backend that is a candidate for caching. |
| [Cookie](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Cookie/) | A Cookie represents an HTTP cookie as sent in the Set-Cookie header of an HTTP response or the Cookie header of an HTTP request. |
| [DecompressResponseOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.DecompressResponseOptions/) | DecompressResponseOptions control the auto decompress response behaviour. |
| [FastlyMeta](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.FastlyMeta/) | FastlyMeta holds various Fastly-specific metadata for a request. |
| [InspectOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.InspectOptions/) |  |
| [InspectResponse](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.InspectResponse/) |  |
| [Limits](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Limits/) (deprecated) | Limits handles HTTP limits. |
| [Request](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Request/) | Request represents an HTTP request received by this server from a requesting client, or to be sent from this server during this execution. Some fields only have meaning in one context or the other. |
| [Response](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Response/) | Response to an outgoing HTTP request made by this server. |
| [ResVPNProxyResult](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.ResVPNProxyResult/) | ResVPNProxyResult represents additional IP Proxy and VPN Intelligence data for a request. |
| [ServeManyOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.ServeManyOptions/) | ServeManyOptions controls the exit conditions for ServeMany.  Note that Compute might terminate the request hander earlier. |
| [TLSClientCertificateInfo](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.TLSClientCertificateInfo/) |  |
| [TLSInfo](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.TLSInfo/) | TLSInfo collects TLS-related metadata for incoming requests. All fields are ignored for outgoing requests. |
| [Transport](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Transport/) | Transport is an http.RoundTripper implementation for backend requests on Compute. |

## Interfaces

| Name | Summary |
| --- | --- |
| [Handler](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/interface.Handler/) | Handler describes anything which can handle, or respond to, an HTTP request. It has the same semantics as net/http.Handler, but operates on the Request and ResponseWriter types defined in this package. |
| [ResponseWriter](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/interface.ResponseWriter/) | ResponseWriter is used to respond to client requests. |

## Enums

| Name | Summary |
| --- | --- |
| [BackendHealth](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/enum.BackendHealth/) |  |
| [NGWAFVerdict](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/enum.NGWAFVerdict/) |  |
| [SameSite](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/enum.SameSite/) | SameSite allows a server to define a cookie attribute making it impossible for the browser to send this cookie along with cross-site requests. The main goal is to mitigate the risk of cross-origin information leakage, and provide some protection against cross-site request forgery attacks. |
| [TLSVersion](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/enum.TLSVersion/) |  |

## Type aliases

| Name | Summary |
| --- | --- |
| [BotCategory](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/type.BotCategory/) |  |
| [ClientCertificateVerifyResult](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/type.ClientCertificateVerifyResult/) |  |
| [HandlerFunc](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/type.HandlerFunc/) | HandlerFunc adapts a function to a Handler. |
| [Header](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/type.Header/) | Header represents the key-value pairs in a set of HTTP headers. Unlike net/http, keys are canonicalized to their lowercase form. |
| [SendError](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/type.SendError/) | SendError provides detailed information about backend request failures. |
| [SendErrorTag](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/type.SendErrorTag/) |  |

## Functions

| Name | Summary |
| --- | --- |
| [Adapt](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.Adapt/) | Adapt allows an http.Handler to be used as an fsthttp.Handler. |
| [BackendFromName](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.BackendFromName/) |  |
| [CanonicalHeaderKey](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.CanonicalHeaderKey/) | CanonicalHeaderKey returns the canonical format of the header key s. The canonicalization converts the first letter and any letter following a hyphen to upper case; the rest are converted to lowercase. For example, the canonical key for "accept-encoding" is "Accept-Encoding". If s contains a space or invalid header field bytes, it is returned without modifications. |
| [Error](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.Error/) | Error replies to the request with the specified error message and HTTP code. It does not otherwise end the request; the caller should ensure no further writes are done to w. The error message should be plain text. |
| [NewBackendHealthcheck](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NewBackendHealthcheck/) |  |
| [NewBackendOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NewBackendOptions/) |  |
| [NewHeader](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NewHeader/) | NewHeader returns an initialized and empty set of headers. |
| [NewRequest](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NewRequest/) | NewRequest constructs an outgoing request with the given HTTP method, URI, and body. The URI is parsed via url.Parse. |
| [NewTransport](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NewTransport/) | NewTransport creates a new Transport instance with the given default backend.  Any request made to a host not explicitly mapped to a backend using the AddHostBackend method will be sent to the default backend. |
| [NotFound](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NotFound/) | NotFound replies to the request with an HTTP 404 not found error. |
| [RegisterDynamicBackend](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.RegisterDynamicBackend/) | RegisterDynamicBackend registers a new dynamic backend. |
| [RequestFromContext](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.RequestFromContext/) | RequestFromContext returns the fsthttp.Request associated with the context, if any. |
| [ResponseFromContext](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.ResponseFromContext/) | ResponseFromContext returns the fsthttp.Response associated with the context, if any. |
| [ResponseWriterFromContext](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.ResponseWriterFromContext/) | ResponseWriterFromContext returns the fsthttp.ResponseWriter associated with the context, if any. |
| [Serve](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.Serve/) | Serve calls h, providing it with a context that will be canceled when Serve returns, a Request representing the incoming client request that initiated this execution, and a ResponseWriter that can be used to respond to that request. Serve will ensure the ResponseWriter has been closed before returning, and so should only be called once per execution. |
| [ServeFunc](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.ServeFunc/) | ServeFunc is sugar for Serve(HandlerFunc(f)). |
| [ServeMany](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.ServeMany/) | ServeMany allows a single Compute instance to handle multiple requests. |
| [SetCookie](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.SetCookie/) | SetCookie adds a Set-Cookie header to the provided ResponseWriter's headers. The provided cookie must have a valid Name. Invalid cookies may be silently dropped. |
| [StatusText](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.StatusText/) | StatusText returns a text for the HTTP status code. It returns the empty string if the code is unknown. |

## Constants

### BackendHealthHealthy

**Type:** `BackendHealth`  
**Default:** `1`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L33

Constants for dynamic backend health status

### BackendHealthUnhealthy

**Type:** `BackendHealth`  
**Default:** `2`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L34

Constants for dynamic backend health status

### BackendHealthUnknown

**Type:** `BackendHealth`  
**Default:** `0`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L32

Constants for dynamic backend health status

### BotCategoryAICrawler

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryAICrawler`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L18

BotCategoryAICrawler is for crawlers used for training AIs and LLMs, generally used for building AI models or indexes.

### BotCategoryAIFetcher

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryAIFetcher`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L21

BotCategoryAIFetcher is for fetchers used by AIs and LLMs for enriching results in response to a user query.

### BotCategoryAccessibility

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryAccessibility`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L15

BotCategoryAccessibility is for tools that make content accessible (e.g., screen readers).

### BotCategoryContentFetcher

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryContentFetcher`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L24

BotCategoryContentFetcher is for tools that extract content from websites to be used elsewhere.

### BotCategoryHeadless

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryHeadless`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L51

BotCategoryHeadless is for a request that is suspected of being a headless bot.

### BotCategoryMonitoringSiteTools

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryMonitoringSiteTools`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L27

BotCategoryMonitoringSiteTools is for tools that access your website to monitor things like performance, uptime, and proving domain control.

### BotCategoryNone

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryNone`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L9

BotCategoryNone indicates bot detection was not executed, or no bot was detected.

### BotCategoryOnlineMarketing

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryOnlineMarketing`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L30

BotCategoryOnlineMarketing is for crawlers from online marketing platforms (e.g., Facebook, Pinterest).

### BotCategoryPagePreview

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryPagePreview`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L33

BotCategoryPagePreview is for tools that access your website to show a preview of the page in other online services and social media platforms.

### BotCategoryPlatformIntegrations

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryPlatformIntegrations`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L36

BotCategoryPlatformIntegrations is for integration with other platforms by accessing the website's API, notably Webhooks.

### BotCategoryResearch

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryResearch`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L39

BotCategoryResearch is for commercial and academic tools that collect and analyze data for research purposes.

### BotCategorySearchEngineCrawler

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategorySearchEngineCrawler`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L42

BotCategorySearchEngineCrawler is for crawlers that index your website for search engines.

### BotCategorySearchEngineSpecialization

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategorySearchEngineSpecialization`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L45

BotCategorySearchEngineSpecialization is for tools that support search engine optimization tasks (e.g., link analysis, ranking).

### BotCategorySecurityTools

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategorySecurityTools`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L48

BotCategorySecurityTools is for security analysis tools that inspect your website for vulnerabilities, misconfigurations and other security features.

### BotCategorySuspected

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategorySuspected`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L12

BotCategorySuspected is for a suspected bot.

### BotCategoryUnknown

**Type:** `fastly.BotCategory`  
**Default:** `fastly.BotCategoryUnknown`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/bot.go#L54

BotCategoryUnknown indicates the detected bot belongs to a category not recognized by this SDK version.

### ClientCertificateVerifyResultBadCertificate

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultBadCertificate`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1189

ClientCertificateVerifyResultBadCertificate means the certificate is corrupt
(e.g., the certificate signatures do not verify correctly).

### ClientCertificateVerifyResultCertificateExpired

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultCertificateExpired`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1195

ClientCertificateVerifyResultCertificateExpired means the client certificate has expired or is not currently valid.

### ClientCertificateVerifyResultCertificateMissing

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultCertificateMissing`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1203

ClientCertificateVerifyResultCertificateMissing means the client did not provide a certificate during the handshake.

### ClientCertificateVerifyResultCertificateRevoked

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultCertificateRevoked`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1192

ClientCertificateVerifyResultCertificateRevoked means the client certificate is revoked by its signer.

### ClientCertificateVerifyResultCertificateUnknown

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultCertificateUnknown`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1207

ClientCertificateVerifyResultCertificateUnknown means the client certificate was received, but some other (unspecified) issue
arose in processing the certificate, rendering it unacceptable.

### ClientCertificateVerifyResultOK

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultOK`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1185

ClientCertificateVerifyResultOK indicates that client certificate verified successfully.

### ClientCertificateVerifyResultUnknownCA

**Type:** `fastly.ClientCertificateVerifyResult`  
**Default:** `fastly.ClientCertificateVerifyResultUnknownCA`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1200

ClientCertificateVerifyResultUnknownCA means the valid certificate chain or partial chain was received, but the
certificate was not accepted because the CA certificate could not be located or could not
be matched with a known trust anchor.

### InspectVerdictAllow

**Type:** `NGWAFVerdict`  
**Default:** `"allow"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1320

### InspectVerdictBlock

**Type:** `NGWAFVerdict`  
**Default:** `"block"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1321

### InspectVerdictUnauthorized

**Type:** `NGWAFVerdict`  
**Default:** `"unauthorized"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1322

### MethodConnect

**Type:** `untyped string`  
**Default:** `"CONNECT"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L17

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodDelete

**Type:** `untyped string`  
**Default:** `"DELETE"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L16

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodGet

**Type:** `untyped string`  
**Default:** `"GET"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L11

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodHead

**Type:** `untyped string`  
**Default:** `"HEAD"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L12

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodOptions

**Type:** `untyped string`  
**Default:** `"OPTIONS"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L18

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodPatch

**Type:** `untyped string`  
**Default:** `"PATCH"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L15

RFC 5789

### MethodPost

**Type:** `untyped string`  
**Default:** `"POST"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L13

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodPut

**Type:** `untyped string`  
**Default:** `"PUT"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L14

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### MethodTrace

**Type:** `untyped string`  
**Default:** `"TRACE"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/methods.go#L19

Common HTTP methods.

Unless otherwise noted, these are defined in RFC 7231 section 4.3.

### SameSiteDefaultMode

**Type:** `SameSite`  
**Default:** `iota + 1`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/cookie.go#L54

### SameSiteLaxMode

**Type:** `SameSite`  
**Default:** `2`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/cookie.go#L55

### SameSiteNoneMode

**Type:** `SameSite`  
**Default:** `4`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/cookie.go#L57

### SameSiteStrictMode

**Type:** `SameSite`  
**Default:** `3`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/cookie.go#L56

### SendErrorConnectionLimitReached

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagConnectionLimitReached`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L74

SendErrorConnectionLimitReached indicates the system is configured to limit the
number of connections it has to the backend, and that limit has been reached.

### SendErrorConnectionRefused

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagConnectionRefused`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L62

SendErrorConnectionRefused indicates the system's connection to the backend was
refused.

### SendErrorConnectionTerminated

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagConnectionTerminated`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L66

SendErrorConnectionTerminated indicates the system's connection to the backend
was closed before a complete response was received.

### SendErrorConnectionTimeout

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagConnectionTimeout`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L70

SendErrorConnectionTimeout indicates the system's attempt to open a connection
to the backend timed out.

### SendErrorDNSError

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagDNSError`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L45

SendErrorDNSError indicates the system encountered a DNS error when trying to
find an IP address for the backend hostname.
Use DNSErrorRCode() and DNSErrorInfoCode() to get additional details.

### SendErrorDNSTimeout

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagDNSTimeout`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L40

SendErrorDNSTimeout indicates the system encountered a timeout when trying to
find an IP address for the backend hostname.

### SendErrorDestinationIPUnroutable

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagDestinationIPUnroutable`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L58

SendErrorDestinationIPUnroutable indicates the system cannot find a route to the
next-hop IP address.

### SendErrorDestinationNotFound

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagDestinationNotFound`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L49

SendErrorDestinationNotFound indicates the system cannot determine which backend
to use, or the specified backend was invalid.

### SendErrorDestinationUnavailable

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagDestinationUnavailable`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L54

SendErrorDestinationUnavailable indicates the system considers the backend to be
unavailable (e.g., recent attempts to communicate with it may have failed,
or a health check may indicate that it is down).

### SendErrorHTTPIncompleteResponse

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPIncompleteResponse`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L94

SendErrorHTTPIncompleteResponse indicates the system received an incomplete
response to the request from the backend.

### SendErrorHTTPProtocolError

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPProtocolError`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L125

SendErrorHTTPProtocolError indicates the system encountered an HTTP protocol
error when communicating with the backend. This error will only be used when a more
specific one is not defined.

### SendErrorHTTPRequestCacheKeyInvalid

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPRequestCacheKeyInvalid`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L129

SendErrorHTTPRequestCacheKeyInvalid indicates an invalid Fastly cache key was
provided for the request.

### SendErrorHTTPRequestURIInvalid

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPRequestURIInvalid`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L133

SendErrorHTTPRequestURIInvalid indicates an invalid URI was provided for the
request.

### SendErrorHTTPResponseBodyTooLarge

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPResponseBodyTooLarge`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L108

SendErrorHTTPResponseBodyTooLarge indicates the system received a response to
the request whose body was considered too large.
For specific limits, visit the [Compute resource limits documentation](https://docs.fastly.com/products/compute-resource-limits).

### SendErrorHTTPResponseHeaderSectionTooLarge

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPResponseHeaderSectionTooLarge`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L101

SendErrorHTTPResponseHeaderSectionTooLarge indicates the system received a
response to the request whose header section was considered too large.
For specific limits, visit the [Compute resource limits documentation](https://docs.fastly.com/products/compute-resource-limits).

### SendErrorHTTPResponseStatusInvalid

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPResponseStatusInvalid`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L116

SendErrorHTTPResponseStatusInvalid indicates the system received a response to
the request whose status code or reason phrase was invalid.

### SendErrorHTTPResponseTimeout

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPResponseTimeout`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L112

SendErrorHTTPResponseTimeout indicates the system reached a configured time
limit waiting for the complete response.  The limit is configured on the backend.

### SendErrorHTTPUpgradeFailed

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagHTTPUpgradeFailed`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L120

SendErrorHTTPUpgradeFailed indicates the process of negotiating an upgrade of
the HTTP version between the system and the backend failed.

### SendErrorInternalError

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagInternalError`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L137

SendErrorInternalError indicates the system encountered an unexpected internal
error.

### SendErrorTLSAlertReceived

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagTLSAlertReceived`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L86

SendErrorTLSAlertReceived indicates the system received a TLS alert from the
backend. Use TLSAlertID() and TLSAlertDescription() to get the specific alert.

### SendErrorTLSCertificateError

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagTLSCertificateError`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L78

SendErrorTLSCertificateError indicates the system encountered an error when
verifying the certificate presented by the backend.

### SendErrorTLSConfigurationError

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagTLSConfigurationError`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L82

SendErrorTLSConfigurationError indicates the system encountered an error with
the backend TLS configuration.

### SendErrorTLSProtocolError

**Type:** `fastly.SendErrorDetailTag`  
**Default:** `fastly.SendErrorDetailTagTLSProtocolError`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L90

SendErrorTLSProtocolError indicates the system encountered a TLS error when
communicating with the backend, either during the handshake or afterwards.

### StatusAccepted

**Type:** `untyped int`  
**Default:** `202`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L17

RFC 7231, 6.3.3

### StatusAlreadyReported

**Type:** `untyped int`  
**Default:** `208`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L23

RFC 5842, 7.1

### StatusBadGateway

**Type:** `untyped int`  
**Default:** `502`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L68

RFC 7231, 6.6.3

### StatusBadRequest

**Type:** `untyped int`  
**Default:** `400`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L36

RFC 7231, 6.5.1

### StatusConflict

**Type:** `untyped int`  
**Default:** `409`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L45

RFC 7231, 6.5.8

### StatusContinue

**Type:** `untyped int`  
**Default:** `100`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L10

RFC 7231, 6.2.1

### StatusCreated

**Type:** `untyped int`  
**Default:** `201`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L16

RFC 7231, 6.3.2

### StatusEarlyHints

**Type:** `untyped int`  
**Default:** `103`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L13

RFC 8297

### StatusExpectationFailed

**Type:** `untyped int`  
**Default:** `417`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L53

RFC 7231, 6.5.14

### StatusFailedDependency

**Type:** `untyped int`  
**Default:** `424`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L58

RFC 4918, 11.4

### StatusForbidden

**Type:** `untyped int`  
**Default:** `403`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L39

RFC 7231, 6.5.3

### StatusFound

**Type:** `untyped int`  
**Default:** `302`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L28

RFC 7231, 6.4.3

### StatusGatewayTimeout

**Type:** `untyped int`  
**Default:** `504`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L70

RFC 7231, 6.6.5

### StatusGone

**Type:** `untyped int`  
**Default:** `410`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L46

RFC 7231, 6.5.9

### StatusHTTPVersionNotSupported

**Type:** `untyped int`  
**Default:** `505`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L71

RFC 7231, 6.6.6

### StatusIMUsed

**Type:** `untyped int`  
**Default:** `226`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L24

RFC 3229, 10.4.1

### StatusInsufficientStorage

**Type:** `untyped int`  
**Default:** `507`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L73

RFC 4918, 11.5

### StatusInternalServerError

**Type:** `untyped int`  
**Default:** `500`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L66

RFC 7231, 6.6.1

### StatusLengthRequired

**Type:** `untyped int`  
**Default:** `411`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L47

RFC 7231, 6.5.10

### StatusLocked

**Type:** `untyped int`  
**Default:** `423`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L57

RFC 4918, 11.3

### StatusLoopDetected

**Type:** `untyped int`  
**Default:** `508`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L74

RFC 5842, 7.2

### StatusMethodNotAllowed

**Type:** `untyped int`  
**Default:** `405`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L41

RFC 7231, 6.5.5

### StatusMisdirectedRequest

**Type:** `untyped int`  
**Default:** `421`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L55

RFC 7540, 9.1.2

### StatusMovedPermanently

**Type:** `untyped int`  
**Default:** `301`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L27

RFC 7231, 6.4.2

### StatusMultiStatus

**Type:** `untyped int`  
**Default:** `207`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L22

RFC 4918, 11.1

### StatusMultipleChoices

**Type:** `untyped int`  
**Default:** `300`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L26

RFC 7231, 6.4.1

### StatusNetworkAuthenticationRequired

**Type:** `untyped int`  
**Default:** `511`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L76

RFC 6585, 6

### StatusNoContent

**Type:** `untyped int`  
**Default:** `204`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L19

RFC 7231, 6.3.5

### StatusNonAuthoritativeInfo

**Type:** `untyped int`  
**Default:** `203`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L18

RFC 7231, 6.3.4

### StatusNotAcceptable

**Type:** `untyped int`  
**Default:** `406`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L42

RFC 7231, 6.5.6

### StatusNotExtended

**Type:** `untyped int`  
**Default:** `510`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L75

RFC 2774, 7

### StatusNotFound

**Type:** `untyped int`  
**Default:** `404`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L40

RFC 7231, 6.5.4

### StatusNotImplemented

**Type:** `untyped int`  
**Default:** `501`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L67

RFC 7231, 6.6.2

### StatusNotModified

**Type:** `untyped int`  
**Default:** `304`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L30

RFC 7232, 4.1

### StatusOK

**Type:** `untyped int`  
**Default:** `200`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L15

RFC 7231, 6.3.1

### StatusPartialContent

**Type:** `untyped int`  
**Default:** `206`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L21

RFC 7233, 4.1

### StatusPaymentRequired

**Type:** `untyped int`  
**Default:** `402`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L38

RFC 7231, 6.5.2

### StatusPermanentRedirect

**Type:** `untyped int`  
**Default:** `308`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L34

RFC 7538, 3

### StatusPreconditionFailed

**Type:** `untyped int`  
**Default:** `412`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L48

RFC 7232, 4.2

### StatusPreconditionRequired

**Type:** `untyped int`  
**Default:** `428`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L61

RFC 6585, 3

### StatusProcessing

**Type:** `untyped int`  
**Default:** `102`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L12

RFC 2518, 10.1

### StatusProxyAuthRequired

**Type:** `untyped int`  
**Default:** `407`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L43

RFC 7235, 3.2

### StatusRequestEntityTooLarge

**Type:** `untyped int`  
**Default:** `413`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L49

RFC 7231, 6.5.11

### StatusRequestHeaderFieldsTooLarge

**Type:** `untyped int`  
**Default:** `431`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L63

RFC 6585, 5

### StatusRequestTimeout

**Type:** `untyped int`  
**Default:** `408`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L44

RFC 7231, 6.5.7

### StatusRequestURITooLong

**Type:** `untyped int`  
**Default:** `414`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L50

RFC 7231, 6.5.12

### StatusRequestedRangeNotSatisfiable

**Type:** `untyped int`  
**Default:** `416`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L52

RFC 7233, 4.4

### StatusResetContent

**Type:** `untyped int`  
**Default:** `205`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L20

RFC 7231, 6.3.6

### StatusSeeOther

**Type:** `untyped int`  
**Default:** `303`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L29

RFC 7231, 6.4.4

### StatusServiceUnavailable

**Type:** `untyped int`  
**Default:** `503`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L69

RFC 7231, 6.6.4

### StatusSwitchingProtocols

**Type:** `untyped int`  
**Default:** `101`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L11

RFC 7231, 6.2.2

### StatusTeapot

**Type:** `untyped int`  
**Default:** `418`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L54

RFC 7168, 2.3.3

### StatusTemporaryRedirect

**Type:** `untyped int`  
**Default:** `307`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L33

RFC 7231, 6.4.7

### StatusTooEarly

**Type:** `untyped int`  
**Default:** `425`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L59

RFC 8470, 5.2.

### StatusTooManyRequests

**Type:** `untyped int`  
**Default:** `429`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L62

RFC 6585, 4

### StatusUnauthorized

**Type:** `untyped int`  
**Default:** `401`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L37

RFC 7235, 3.1

### StatusUnavailableForLegalReasons

**Type:** `untyped int`  
**Default:** `451`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L64

RFC 7725, 3

### StatusUnprocessableEntity

**Type:** `untyped int`  
**Default:** `422`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L56

RFC 4918, 11.2

### StatusUnsupportedMediaType

**Type:** `untyped int`  
**Default:** `415`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L51

RFC 7231, 6.5.13

### StatusUpgradeRequired

**Type:** `untyped int`  
**Default:** `426`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L60

RFC 7231, 6.5.15

### StatusUseProxy

**Type:** `untyped int`  
**Default:** `305`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L31

RFC 7231, 6.4.5

### StatusVariantAlsoNegotiates

**Type:** `untyped int`  
**Default:** `506`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/status.go#L72

RFC 2295, 8.1

### TLSVersion1_0

**Type:** `TLSVersion`  
**Default:** `0`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L55

Constants for dynamic backend TLS configuration

### TLSVersion1_1

**Type:** `TLSVersion`  
**Default:** `1`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L56

Constants for dynamic backend TLS configuration

### TLSVersion1_2

**Type:** `TLSVersion`  
**Default:** `2`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L57

Constants for dynamic backend TLS configuration

### TLSVersion1_3

**Type:** `TLSVersion`  
**Default:** `3`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L58

Constants for dynamic backend TLS configuration

### TimeFormat

**Type:** `untyped string`  
**Default:** `"Mon, 02 Jan 2006 15:04:05 GMT"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/cookie.go#L491

TimeFormat is the time format to use when generating times in HTTP
headers. It is like time.RFC1123 but hard-codes GMT as the time
zone. The time being formatted must be in UTC for Format to
generate the correct format.

For parsing this time format, see ParseTime.

### TrailerPrefix

**Type:** `untyped string`  
**Default:** `"Trailer:"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/response.go#L499

TrailerPrefix is a magic prefix for [ResponseWriter.Header](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/interface.ResponseWriter/#method-Header) map keys
that, if present, signals that the map entry is actually for the response
trailers, and not the response headers. The prefix is stripped after the
ServeHTTP call finishes and the values are sent in the trailers.

This mechanism is intended only for trailers that are not known prior to the
headers being written. If the set of trailers is fixed or known before
the header is written, the normal Go trailers mechanism is preferred.

## Variables

### ErrBackendNameInUse

**Type:** `error`  
**Default:** `errors.New("backend name already in use")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L19

ErrBackendNameInUse indicates the backend name is already in use.

### ErrBackendNotFound

**Type:** `error`  
**Default:** `errors.New("backend not found")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L22

ErrBackendNotFound indicates the provided backend was not found.

### ErrCachingNotSupported

**Type:** `error`  
**Default:** `errors.New("fsthttp: caching not supported")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L889

ErrCachingNotSupported is returned by Send() if the requested caching type
(host or guest) is not supported by the request configuration or runtime.

### ErrClosed

**Type:** `error`  
**Default:** `errors.New("connection has been closed")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/response.go#L452

ErrClosed is returned when attempting to write to a ResponseWriter whose network connection has been closed.

### ErrDynamicBackendDisallowed

**Type:** `error`  
**Default:** `errors.New("dynamic backends not supported for this service")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L16

ErrDynamicBackendDisallowed indicates the service is not allowed to
create dynamic backends.

### ErrFanoutNotEnabled

**Type:** `error`  
**Default:** `errors.New("fanout or websockets are not enabled on this service; please contact support for help")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1267

### ErrHandoffNotSupported

**Type:** `error`  
**Default:** `errors.New("handoff not supported on this request")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1265

### ErrInvalidStatusCode

**Type:** `error`  
**Default:** `errors.New("invalid HTTP status code")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/response.go#L455

ErrInvalidStatusCode is returned when attempting to write a resposne with an invalid HTTP status code.

### ErrNoCookie

**Type:** `error`  
**Default:** `errors.New("fsthttp: named cookie not present")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L357

ErrNoCookie is returned by Request's Cookie method when a cookie is not found.

### ErrRequestCollapse

**Type:** `error`  
**Default:** `errors.New("error during request collapse")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/senderror.go#L141

### ErrTrailersNotReady

**Type:** `error`  
**Default:** `errors.New("trailers not available")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/response.go#L81

### ErrUnexpected

**Type:** `error`  
**Default:** `errors.New("unexpected error")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/backend.go#L25

ErrUnexpected indicates an unexpected error occurred.

### RequestLimits

**Type:** `Limits`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L24

RequestLimits are the limits for the components of an HTTP request.

### ResponseLimits

**Type:** `Limits`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/response.go#L18

ResponseLimits are the limits for the components of an HTTP response.
