---
title: Limits
summary: Limits handles HTTP limits.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.Limits/
---

**Kind:** Struct  
**Module:** [fsthttp](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L13

> **DEPRECATED:** Deprecated: limits are enforced at a different level within the platform. The values returned by the Max.+Len() methods have been preserved, but are no longer meaningful. Further information can be found at https://docs.fastly.com/products/network-services-resource-limits#request-and-response-limits

```go
type Limits struct{}
```

Limits handles HTTP limits.

Deprecated: limits are enforced at a different level within the platform. The
values returned by the Max.+Len() methods have been preserved, but are no
longer meaningful. Further information can be found at
https://docs.fastly.com/products/network-services-resource-limits#request-and-response-limits

## Methods

### MaxHeaderNameLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L17

> **DEPRECATED:** Deprecated: the limit is not enforced, buffer sizing is adaptive.

```go
func (limits *Limits) MaxHeaderNameLen() int
```

MaxHeaderNameLen gets the header name limit
Deprecated: the limit is not enforced, buffer sizing is adaptive.

**Returns**

`int`

### MaxHeaderValueLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L28

> **DEPRECATED:** Deprecated: the limit is not enforced, buffer sizing is adaptive.

```go
func (limits *Limits) MaxHeaderValueLen() int
```

MaxHeaderValueLen gets the header value limit
Deprecated: the limit is not enforced, buffer sizing is adaptive.

**Returns**

`int`

### MaxMethodLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L39

> **DEPRECATED:** Deprecated: the limit is not enforced, buffer sizing is adaptive.

```go
func (limits *Limits) MaxMethodLen() int
```

MaxMethodLen gets the request method limit
Deprecated: the limit is not enforced, buffer sizing is adaptive.

**Returns**

`int`

### MaxURLLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L50

> **DEPRECATED:** Deprecated: the limit is not enforced, buffer sizing is adaptive.

```go
func (limits *Limits) MaxURLLen() int
```

MaxURLLen gets the request URL limit
Deprecated: the limit is not enforced, buffer sizing is adaptive.

**Returns**

`int`

### SetMaxHeaderNameLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L23

> **DEPRECATED:** Deprecated: the limit is not enforced, buffer sizing is adaptive.

```go
func (limits *Limits) SetMaxHeaderNameLen(_ int)
```

SetMaxHeaderNameLen sets the header name limit
Deprecated: the limit is not enforced, buffer sizing is adaptive.

**Parameters**

- `_`: `int`

### SetMaxHeaderValueLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L34

> **DEPRECATED:** Deprecated: the limit is not enforced, buffer sizing is adaptive.

```go
func (limits *Limits) SetMaxHeaderValueLen(_ int)
```

SetMaxHeaderValueLen sets the header value limit
Deprecated: the limit is not enforced, buffer sizing is adaptive.

**Parameters**

- `_`: `int`

### SetMaxMethodLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L45

> **DEPRECATED:** Deprecated: the limit is not reset, buffer sizing is adaptive.

```go
func (limits *Limits) SetMaxMethodLen(_ int)
```

SetMaxMethodLen sets the request method limit
Deprecated: the limit is not reset, buffer sizing is adaptive.

**Parameters**

- `_`: `int`

### SetMaxURLLen

**Flags:** deprecated  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/limits.go#L56

> **DEPRECATED:** Deprecated: the limit is not reset, buffer sizing is adaptive.

```go
func (limits *Limits) SetMaxURLLen(_ int)
```

SetMaxURLLen sets the request URL limit
Deprecated: the limit is not reset, buffer sizing is adaptive.

**Parameters**

- `_`: `int`
