code: public RequestHeader withMethod(Method method) {
          return new RequestHeader(method, uri, protocol, acceptedResponseProtocols, principal, headers, lowercaseHeaders);
      }
docs: Return a copy of this request header with the given method set.
  
  @param method The method to set.
  @return A copy of this request header.