Package com.google.genai.gaos.utils
Interface AsyncHook.AfterSuccess
- All Known Implementing Classes:
AsyncHooks
- Enclosing class:
- AsyncHook
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Specifies how a response is transformed before response processing.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionafterSuccess(Hook.AfterSuccessContext context, HttpResponse<InputStream> response) Transforms the given response before response processing occurs.
-
Field Details
-
DEFAULT
-
-
Method Details
-
afterSuccess
CompletableFuture<HttpResponse<InputStream>> afterSuccess(Hook.AfterSuccessContext context, HttpResponse<InputStream> response) Transforms the given response before response processing occurs.- Parameters:
context- context for the hook callresponse- response to be transformed- Returns:
- transformed response
-