Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PropagateEnvironment ¶
func PropagateEnvironment() connect.Interceptor
PropagateEnvironment returns a ConnectRPC interceptor that propagates the x-diverge-env header between incoming and outgoing requests.
Example:
client := examplev1connect.NewExampleServiceClient(
http.DefaultClient,
"http://localhost:8080",
connect.WithInterceptors(divergeconnect.PropagateEnvironment()),
)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.