http2
http2 copied to clipboard
Does this MetaData support post request with body?
I have an issue with making http/2 post connection with one server. The server is expecting post request with body. How can we acheive that with MetaData.Request..?
I used below code for Metadata.Request
MetaData.Request request = new MetaData.Request("POST", new HttpURI("https://" + host + ":" + port + "/3/device/ff9760c0104667b4ba0bcac0d7a2e46cdc4e179fc9be45069aab74a216c3cf78"), HttpVersion.HTTP_2, requestFields); // Create the HTTP/2 HEADERS frame representing the HTTP request. HeadersFrame headersFrame = new HeadersFrame(request, null, true);