code: public Map<String, String> requestHeaders(){
          Map<String, String> headers = new HashMap<String, String>();
          Enumeration<String> names = request.getHeaderNames();
          while (names.hasMoreElements()) {
              String name = names.nextElement();
              headers.put(name, request.getHeader(name));
          }
          return headers;
      }
docs: Returns all headers from a request keyed by header name.
  
  @return all headers from a request keyed by header name.