http_transport_options.go

 1package server
 2
 3import (
 4	"context"
 5	"net/http"
 6)
 7
 8// HTTPContextFunc is a function that takes an existing context and the current
 9// request and returns a potentially modified context based on the request
10// content. This can be used to inject context values from headers, for example.
11type HTTPContextFunc func(ctx context.Context, r *http.Request) context.Context