Class OkHttpHeaders

java.lang.Object
ru.tinkoff.kora.http.client.ok.OkHttpHeaders
All Implemented Interfaces:
Iterable<Map.Entry<String,List<String>>>, ru.tinkoff.kora.http.common.header.HttpHeaders

public final class OkHttpHeaders extends Object implements ru.tinkoff.kora.http.common.header.HttpHeaders
  • Constructor Details

    • OkHttpHeaders

      public OkHttpHeaders(okhttp3.Headers headers)
  • Method Details

    • getFirst

      @Nullable public String getFirst(String name)
      Specified by:
      getFirst in interface ru.tinkoff.kora.http.common.header.HttpHeaders
    • getAll

      public List<String> getAll(String name)
      Specified by:
      getAll in interface ru.tinkoff.kora.http.common.header.HttpHeaders
    • has

      public boolean has(String key)
      Specified by:
      has in interface ru.tinkoff.kora.http.common.header.HttpHeaders
    • size

      public int size()
      Specified by:
      size in interface ru.tinkoff.kora.http.common.header.HttpHeaders
    • names

      public Set<String> names()
      Specified by:
      names in interface ru.tinkoff.kora.http.common.header.HttpHeaders
    • iterator

      @NotNull public Iterator<Map.Entry<String,List<String>>> iterator()
      Specified by:
      iterator in interface Iterable<Map.Entry<String,List<String>>>