Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectAIAgent ¶ added in v1.37.2
DetectAIAgent detects if the CLI was invoked by a coding agent, based on well-known env vars. It accepts an environment getter function to allow testing without modifying the actual environment.
func GetEncodedStripeUserAgent ¶
func GetEncodedStripeUserAgent() string
GetEncodedStripeUserAgent returns the string to be used as the value for the `X-Stripe-Client-User-Agent` HTTP header.
func GetEncodedUserAgent ¶
func GetEncodedUserAgent() string
GetEncodedUserAgent returns the string to be used as the value for the `User-Agent` HTTP header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.