sui Http Client
Creates a new instance of SuiHttpClient using the provided configuration.
The configuration for the client is defined by a lambda function that takes an instance of ClientConfig as its receiver and modifies its properties as needed. The lambda function is passed to the function as a parameter of type Config.() -> Unit.
Example usage:
val suiHttpClient = suiHttpClient { setEndPoint(EndPoint.DEVNET) }Content copied to clipboard
Return
An instance of SuiHttpClient configured according to the provided ClientConfig instance.
Parameters
builder Action
A lambda function that modifies the properties of a ClientConfig instance.