static HttpRequest of(HttpMethod method, String path, MediaType mediaType, HttpData content) {
        return of(method, path, mediaType, content, HttpHeaders.of());
    }
Creates a new HTTP request and closes the stream.

@param method the HTTP method of the request
@param path the path of the request
@param mediaType the {@link MediaType} of the request content
@param content the content of the request
core/src/main/java/com/linecorp/armeria/common/HttpRequest.java