code: public List<String> getHeaders(String name) {
          List<String> result = new ArrayList<String>();
          name += ":";
          for (String header : headers) {
              if (name.regionMatches(true, 0, header, 0, name.length())) {
                  result.add(header.substring(name.length()).trim());
              }
          }
          return result;
      }
docs: Returns the headers named {@code name}.