摘要: 第一种简单方式(如果流过大出问题不负责任) app.Use(async (context, next) => { // 保持原来的流 var originalBody = context.Response.Body; // 用ms替换当前的流 var ms = new MemoryStream(); 阅读全文
posted @ 2020-08-25 13:12 whyfate 阅读(2132) 评论(0) 推荐(0) 编辑
摘要: public class BodyReaderAttribute : ActionFilterAttribute { private string parameterName; public BodyReaderAttribute(string parameterName = "content") 阅读全文
posted @ 2020-08-25 13:10 whyfate 阅读(554) 评论(0) 推荐(0) 编辑
摘要: server{ listen 80; server_name *.hl7fhir.cn; if ( $host ~* "^(.*?)\.hl7fhir\.cn" ){ set $domain $1; } location / { if ( $domain ~* "www" ){ proxy_pass 阅读全文
posted @ 2020-08-25 11:06 whyfate 阅读(924) 评论(0) 推荐(0) 编辑