public object Any(SendText request)
        {
            base.Response.AddHeader("X-Args", $"{request.Id},{request.Name}");

            base.Request.ResponseContentType = request.ContentType ?? base.Request.AcceptTypes[0];
            return(request.RequestStream.ReadFully());
        }
コード例 #2
0
        public async Task <object> Any(SendText request)
        {
            base.Response.AddHeader("X-Args", $"{request.Id},{request.Name}");

            base.Request.ResponseContentType = request.ContentType ?? base.Request.AcceptTypes[0];
            return(await request.RequestStream.ReadToEndAsync());
        }