---
title: RequestFromContext
summary: RequestFromContext returns the fsthttp.Request associated with the context, if any.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.RequestFromContext/
---

**Kind:** Function  
**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/context.go#L13

```go
func RequestFromContext(ctx context.Context) *Request
```

RequestFromContext returns the fsthttp.Request associated with the
context, if any.

**Parameters**

- `ctx`: `context.Context`

**Returns**

`*Request`
