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

StaticPageOptionsSetContentTypeProvider(ActionIContentTypeProvider) 方法

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

Definition

命名空间: TouchSocket.Http
程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public void SetContentTypeProvider(
	Action<IContentTypeProvider> provider
)

参数

provider  ActionIContentTypeProvider
用于配置IContentTypeProvider的委托。

参见