code: public Map<String, String> toMap() {
          final Map<String, String> result = new HashMap<>();
          for (final HttpHeader header : headers.values()) {
              result.put(header.name(), header.value());
          }
          return result;
      }
docs: Get {@link Map} representation of the HttpHeaders collection.
  
  @return the headers as map