headersFor

abstract fun headersFor(endpoint: NetworkEndpoint, attempt: Int): Map<String, String>

Return

headers to add to this attempt's request, or an empty map for none.

Parameters

endpoint

the endpoint being called.

attempt

the 0-based attempt index (0 = first try), matching NetworkEvent.attempt and the attempt passed to RequestInterceptor.intercept for the same attempt.