System.Web.HttpWorkerRequest.SendCalculatedContentLength Method

Adds a Content-Length HTTP header to the response for message bodies that are less than or equal to 2 GB.

Syntax

public virtual void SendCalculatedContentLength (int contentLength)

Parameters

contentLength
The length of the response, in bytes.

Remarks

When the content length is not explicitly set, this method enables the System.Web.HttpWorkerRequest instance to add a Content-Length HTTP header to the response.

Use this overload to set the Content-Length header when the length of the response message body is less than or equal to 2 GB.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0