Package com.styra.opa.openapi.utils
Interface Hook.SdkInit
- All Known Implementing Classes:
Hooks
- Enclosing class:
- Hook
public static interface Hook.SdkInit
Transforms the HTTPClient before use.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Hook.SdkInit
The default action is to return the client untouched. -
Method Summary
Modifier and TypeMethodDescriptionsdkInit
(Hook.SdkInitData data) Returns a transformedHTTPClient
andbaseUrl
for use in requests.
-
Field Details
-
DEFAULT
The default action is to return the client untouched.
-
-
Method Details
-
sdkInit
Returns a transformedHTTPClient
andbaseUrl
for use in requests.- Parameters:
data
- data to transform- Returns:
- the transformed data
-