okhttp / okhttp3 / Headers / getDate

getDate

fun getDate(name: String): Date?

Returns the last value corresponding to the specified field parsed as an HTTP date, or null if either the field is absent or cannot be parsed as a date.