public class HeaderInterceptor extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
HeaderInterceptor(String name,
String value)
Create an arbitrary header adding interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain)
Method called by framework, to enrich current request chain with requested header information.
|
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.Interceptorchain - the execution chain for the request.IOException - in case of failure down the line.public String getName()
public String getValue()
Copyright © 2026 Contentful, GmbH.. All rights reserved.