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()); }
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()); }