//获取请求消息提数据
Stream stream = filterContext.Request.Content.ReadAsStreamAsync().Result;
Encoding encoding = Encoding.UTF8;
stream.Position = 0;
using (var reader = new StreamReader(stream, encoding))
{
Log.Info(reader.ReadToEnd());
}
时间: 2024-10-11 01:21:36