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.SdkInitThe default action is to return the client untouched. -
Method Summary
Modifier and TypeMethodDescriptionsdkInit(Hook.SdkInitData data) Returns a transformedHTTPClientandbaseUrlfor use in requests.
-
Field Details
-
DEFAULT
The default action is to return the client untouched.
-
-
Method Details
-
sdkInit
Returns a transformedHTTPClientandbaseUrlfor use in requests.- Parameters:
data- data to transform- Returns:
- the transformed data
-