connect

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL