InterceptorUtils

object InterceptorUtils

Functions

getAuthenticator
Link copied to clipboard
fun getAuthenticator(): Authenticator
getInterceptor
Link copied to clipboard
fun getInterceptor(accept: String?, contentType: String?, authorizationRequired: Boolean): Interceptor
getUrlWithQueryParams
Link copied to clipboard
fun getUrlWithQueryParams(url: String): String
getUserAgent
Link copied to clipboard
fun getUserAgent(versionName: String = BuildConfig.VERSION_NAME, versionCode: Int = BuildConfig.VERSION_CODE): String

Properties

ACCEPT_HEADER
Link copied to clipboard
const val ACCEPT_HEADER: String
API_KEY_HEADER
Link copied to clipboard
const val API_KEY_HEADER: String
AUTHORIZATION_HEADER
Link copied to clipboard
const val AUTHORIZATION_HEADER: String
CONTENT_TYPE_HEADER
Link copied to clipboard
const val CONTENT_TYPE_HEADER: String
REQUEST_ID_HEADER
Link copied to clipboard
const val REQUEST_ID_HEADER: String
UBER_TRACE_ID_HEADER
Link copied to clipboard
const val UBER_TRACE_ID_HEADER: String
USER_AGENT_HEADER
Link copied to clipboard
const val USER_AGENT_HEADER: String