@Override
    public Builder toBuilder() {
        Builder builder = builder()
                .headers(getHeaders())
                .method(getMethod())
                .queryParams(getQueryParams());
        getBody().ifPresent(builder::body);
        getBodyMediaType().ifPresent(builder::bodyMediaType);
        getHost().ifPresent(builder::host);
        getUri().ifPresent(builder::uri);
        return builder;
    }
Defines a request to be used by an HttpMalformedRequest test case.
smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedRequestDefinition.java