I am running node server on local host and want to send chunk response and also want to control the data to be sent by iis, is there any configuration for that ?

Aslam Bavakhanavar 0 Reputation points
2024-09-20T04:21:25.4033333+00:00

in web.config file i have tried this configuration, it is adding transfer encoding header but not able removing content length and not able to control data flow also.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
           <rules>
                <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{CACHE_URL}" pattern="^(https?)://" />
                    </conditions>
                    <action type="Rewrite" url="{C:1}://localhost:3000/{R:1}" />
                </rule>
            </rules>
<outboundRules>
    <rule name="Remove Content-Length Header" preCondition="IsStaticContent">
        <match serverVariable="RESPONSE_Content_Length" pattern=".*" />
        <action type="Rewrite" value="" />
    </rule>
    <rule name="Add Chunked Encoding">
        <match serverVariable="RESPONSE_Transfer-Encoding" pattern=".*" />
        <action type="Rewrite" value="chunked" />
    </rule>
    <customTags>
    <tags name="Add Chunked Encoding" />
    </customTags>
    <preConditions>
    <preCondition name="IsStaticContent">
        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/.*$" />
    </preCondition>
</preConditions>

</outboundRules>
</rewrite>
 <serverRuntime uploadReadAheadSize="10" />
        <urlCompression doStaticCompression="false" doDynamicCompression="false" />
 
    </system.webServer>
</configuration>
Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.