Documentation
¶
Overview ¶
Package client defines the capability-agnostic transport boundary used by APIGen's generated typed clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHeader ¶
AddHeader appends a typed header value. Nil pointers are omitted and slices are emitted as repeated header fields.
func AddQuery ¶
AddQuery appends a typed query value. Nil pointers are omitted. Slices are emitted as repeated values when explode is true and comma-delimited otherwise.
func FormatValue ¶
FormatValue renders a path parameter using its wire representation.
Types ¶
type Request ¶
type Request struct {
OperationID string
Method string
Path string
PathParams map[string]string
Query url.Values
Headers http.Header
Body any
ContentType string
Accept string
}
Request is the transport-ready wire request produced by a generated client. Body and response decoding remain generic only at this infrastructure boundary; generated client methods expose concrete request and response types.