Class ApiKeyHttpClientInterceptor
java.lang.Object
ru.tinkoff.kora.http.client.common.interceptor.ApiKeyHttpClientInterceptor
- All Implemented Interfaces:
HttpClientInterceptor
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ru.tinkoff.kora.http.client.common.interceptor.HttpClientInterceptor
HttpClientInterceptor.InterceptChain -
Constructor Summary
ConstructorsConstructorDescriptionApiKeyHttpClientInterceptor(ApiKeyHttpClientInterceptor.ApiKeyLocation parameterLocation, String parameterName, String secret) -
Method Summary
Modifier and TypeMethodDescriptionprocessRequest(ru.tinkoff.kora.common.Context ctx, HttpClientInterceptor.InterceptChain chain, HttpClientRequest request)
-
Constructor Details
-
ApiKeyHttpClientInterceptor
public ApiKeyHttpClientInterceptor(ApiKeyHttpClientInterceptor.ApiKeyLocation parameterLocation, String parameterName, String secret)
-
-
Method Details
-
processRequest
public CompletionStage<HttpClientResponse> processRequest(ru.tinkoff.kora.common.Context ctx, HttpClientInterceptor.InterceptChain chain, HttpClientRequest request) throws Exception - Specified by:
processRequestin interfaceHttpClientInterceptor- Throws:
Exception
-