A Context in go contains any relevant information that needs to be
passed around for requests. When handling an HTTP request, any functions
called from the handler should take a context parameter to preserve this
information. In general, the context is extracted directly from the
request, as implemented in DefaultContextGetter, but some use cases
require more advanced logic, and thus Pipeline recieves a ContextGetter
interface instead of just extracting the context directly.
A Context in go contains any relevant information that needs to be passed around for requests. When handling an HTTP request, any functions called from the handler should take a context parameter to preserve this information. In general, the context is extracted directly from the request, as implemented in DefaultContextGetter, but some use cases require more advanced logic, and thus Pipeline recieves a ContextGetter interface instead of just extracting the context directly.