Versions in this module Expand all Collapse all v0 v0.0.1 Nov 22, 2026 Changes in this version + func DecodeHTTPRequest(input DecodeRequestInput) (*http.Request, error) + func DecodeHTTPResponse(ctx context.Context, input DecodeResponseInput) *http.Response + func EncodeHTTPResponse(ctx context.Context, events <-chan ir.Event, stream bool, ...) <-chan EncodedChunk + func EventsWithContext(ctx context.Context, events <-chan ir.Event) <-chan ir.Event + func JoinUpstreamURL(baseURL, path string) (string, error) + func MergeHeaders(base http.Header, overrides map[string][]string) map[string][]string + type DecodeRequestInput struct + Body []byte + Headers map[string][]string + Method string + Path string + type DecodeResponseInput struct + Body io.Reader + Headers map[string][]string + Protocol ir.Protocol + StatusCode int + Stream bool + type EncodeRequestInput struct + Options convert.Options + Request *ir.Request + Target Target + type EncodeResponseInput struct + Events <-chan ir.Event + Protocol ir.Protocol + Stream bool + type EncodedChunk struct + Data []byte + Err error + type EncodedRequest struct + Body []byte + Headers map[string][]string + Method string + Path string + type Endpoint struct + Method string + Path string + Protocol ir.Protocol + type Handler interface + DecodeRequest func(DecodeRequestInput) (*ir.Request, error) + DecodeResponse func(context.Context, DecodeResponseInput, any) (<-chan ir.Event, error) + EncodeRequest func(EncodeRequestInput) (EncodedRequest, any, error) + EncodeResponse func(context.Context, EncodeResponseInput) (<-chan EncodedChunk, error) + Endpoints func() []Endpoint + type RouteKey struct + Method string + Path string + type Target struct + APIKey string + BaseURL string + EndpointPath string + Headers map[string][]string + Model string + Protocol ir.Protocol