Пример #1
0
        protected virtual async Task CopyContentFromClientToServer()
        {
            //Debug.WriteLine("Reading Request Content");
            long contentLength;

            if (!long.TryParse(Prologue.Headers.FirstOrDefault(x => x.Key == "Content-Length").Value, out contentLength))
            {
                contentLength = -1;
            }
            await ClientStream.CopyHttpMessageToAsync(ClientSocket, RemoteStream, contentLength);
        }