---
title: Handler
summary: 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.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/interface.Handler/
---

**Kind:** Interface  
**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/handle.go#L132

```go
type Handler interface {
	ServeHTTP(ctx context.Context, w ResponseWriter, r *Request)
}
```

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.

## Methods

### ServeHTTP

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/handle.go#L133

```go
ServeHTTP(ctx context.Context, w ResponseWriter, r *Request)
```

**Parameters**

- `ctx`: `context.Context`
- `w`: `ResponseWriter`
- `r`: `*Request`
