code: public String[] getHeaders(String name) {
          List<String> headerList = httpRequest.headers().getAll(name);
          return headerList.toArray(new String[0]);
      }
docs: Gets all header values for a given header name.
  
  @param name name of the header
  @return array of header values