Beispiel #1
0
        private static async Task <HttpResponseMessage> DeserializeAsync(byte[] bytes)
        {
            var content = new ByteArrayContent(bytes);

            content.Headers.Add("Content-Type", "application/http; msgtype=response");
            return(await content.ReadAsHttpResponseMessageAsync());
        }