Topic Path: Symbol Reference > Classes > TIdRequestHeaderInfo Class > TIdRequestHeaderInfo Properties > AcceptEncoding Property
TIdRequestHeaderInfo.AcceptEncoding Property

Indicates the content encodings accepted in a HTTP response.

property AcceptEncoding: String;

AcceptEncoding is a String property that indicates the content encodings accepted in a resulting HTTP response. An AcceptEncoding value is composed of one or more content encoding scheme and an optional realtive quality factor for the encoding. 

AcceptEncoding permits the same values as permitted in ContentEncoding. The special "*" symbol in AcceptEncoding matches any available content encoding not explicitly listed in the header field.

  ARequestHeaderInfo.AcceptEncoding := '*';
  ARequestHeaderInfo.AcceptEncoding := 'compress; q=.5, gzip';
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.