一款简单易用的基础网络通讯组件库。

StaticPageOptionsSetContentTypeProvider(ActionIContentTypeProvider) 方法

设置提供文件扩展名和MIME类型之间的映射。

Definition

命名空间: TouchSocket.Http
程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public void SetContentTypeProvider(
	Action<IContentTypeProvider> provider
)

参数

provider  ActionIContentTypeProvider
用于配置IContentTypeProvider的委托。

参见