【文件属性】:
文件名称:Verify.Web:扩展验证以允许验证Web位
文件大小:71KB
文件格式:ZIP
更新时间:2021-03-30 06:50:06
C#
验证网站
扩展以允许验证Web位。
可通过获得支持。
内容
NuGet软件包
用法
在程序集加载时启用一次VerifyWeb:
VerifyWeb . Enable ();
|
控制器
给定以下控制器:
using System . Collections . Generic ;
using Microsoft . AspNetCore . Mvc ;
public class MyController :
Controller
{
public ActionResult < List>> Method ( string input )
{
var headers = HttpContext . Response . Headers ;
headers . Add ( " headerKey " ,