Skip to content

Glossary: Go Beyond the Basics

r.Context()

Also written: request context

The context attached to an HTTP request. It is canceled if the client goes away, so slow handler work can stop early.

Where the book teaches it

Related terms

context (context.Context)handler (HTTP)