WebRequestHandler.MaxResponseHeadersLength Propriedade

Definição

Obtém ou define o comprimento máximo permitido dos cabeçalhos de resposta.Gets or sets the maximum allowed length of the response headers.

public:
 property int MaxResponseHeadersLength { int get(); void set(int value); };
public int MaxResponseHeadersLength { get; set; }
member this.MaxResponseHeadersLength : int with get, set
Public Property MaxResponseHeadersLength As Integer

Valor da propriedade

Int32

O comprimento, em quilobytes (1024 bytes), dos cabeçalhos de resposta.The length, in kilobytes (1024 bytes), of the response headers.

Comentários

O comprimento do cabeçalho de resposta inclui a linha de status de resposta e quaisquer caracteres de controle adicionais que são recebidos como parte do protocolo HTTP.The length of the response header includes the response status line and any extra control characters that are received as part of HTTP protocol. Um valor de-1 significa que nenhum limite é imposto sobre os cabeçalhos de resposta; um valor de 0 significa que todas as solicitações falham.A value of -1 means no limit is imposed on the response headers; a value of 0 means that all requests fail.

Se a MaxResponseHeadersLength propriedade não estiver definida explicitamente, o padrão será o valor da DefaultMaximumResponseHeadersLength propriedade.If the MaxResponseHeadersLength property is not explicitly set, it defaults to the value of the DefaultMaximumResponseHeadersLength property.

Se o comprimento do cabeçalho de resposta recebido exceder o valor da MaxResponseHeadersLength propriedade, uma exceção será lançada quando a resposta for acessada.If the length of the response header received exceeds the value of the MaxResponseHeadersLength property, an exception is thrown when the response is accessed.

Aplica-se a