📄 web.config
字号:
<?xml version="1.0"?>
<!--
This is a sample web.config. After compiling the project, put the .dll into the
bin directory of your web application (or add a reference to the project in vs.net).
After you have the .dll in your asp.net app's bin directory, add the following
chunks to your web.config file.
-->
<configuration>
<!-- This chunk sets up the configuration section handler for blowery.web/httpModules/ -->
<configSections>
<sectionGroup name="blowery.web">
<section name="httpCompressionModule" type="blowery.Web.HttpModules.HttpCompressionModuleSectionHandler, HttpCompressionModule"/>
</sectionGroup>
</configSections>
<!-- config section for my http module -->
<blowery.web>
<!--
Here's an example on how to change the algorithm or compression level
<compressionModule preferredAlgorithm="deflate|gzip" compressionLevel="high|normal|low"/>
so, to use deflate by default, and high compression, you would use the following line
-->
<httpCompressionModule preferredAlgorithm="deflate" compressionLevel="high"/>
</blowery.web>
<!--
Here, we insert the HttpModule into the HttpRuntime for this web application.
-->
<system.web>
<authentication mode="None"/>
<httpModules>
<add name="CompressionModule" type="blowery.Web.HttpModules.HttpCompressionModule, HttpCompressionModule"/>
</httpModules>
</system.web>
</configuration>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -