public RequestHeader withUri(URI uri) {
        return new RequestHeader(method, uri, protocol, acceptedResponseProtocols, principal, headers, lowercaseHeaders);
    }
public RequestHeader withUri ( URI uri ) { return new RequestHeader ( method , uri , protocol , acceptedResponseProtocols , principal , headers , lowercaseHeaders ) ; }
Return a copy of this request header with the given uri set.

@param uri The uri to set.
@return A copy of this request header.