Adding payload to the Http2Client example. Modifications: When trying out the Http2Client example I noticed that adding a request payload wo…
Adding payload to the Http2Client example.Modifications:When trying out the Http2Client example I noticed that adding a requestpayload would not cause a data frame to written. This seems to bebecause writeHeaders completes the promise, and then the writeDatacall ends up in FlowControlWriter.writeFrame, isDone is true andthe data released and the call aborted and returned.Adding a new promise for the writeData method allows a data frame to bewritten.Result:A body/payload can now be sent to the server. The example was updated tosimply echo the payload received back to the calling client.