Call Option
Kitex Call Option instructions.
Usage
When a client makes an RPC call, it adds an additional Option that takes precedence over client Option and overrides some configurations:
Options
WithHostPort
Specifying a specific HostPort directly during this call phase will overwrite the resolver result for direct access. More
WithURL
Specifying a specified URL during this call phase to initiate the call. More
WithTag
Set some meta information for this RPC call, add it in the form of key-value, for example, if you want to add fields such as cluster and idc to the meta information for service governance, you can write it like this:
WithRPCTimeout
Set RPC timeout. More
WithConnectTimeout
Set connection timeout. More
WithHTTPHost
When using HTTP connection, the Option specifies the Host address in the HTTP header.
Last modified
January 14, 2025
: Update release-v0_12_0.md (#1205) (bd11c02)