Module: Internet Protocols Module Package: HTTP
RWHttpUserAgentHeader RWHttpGenericHeader RWHttpHeaderBase
#include <rw/http/RWHttpUserAgentHeader.h>
RWHttpUserAgentHeader is a specialization class of RWHttpGenericHeader. It defines the HTTP User-Agent Header request. It is a helper class that formats its contents as User-Agent: header_value, where header_value is text that describes the client application.
RWHttpUserAgentHeader();
Constructs a default RWHttpUserAgentHeader object with the associated value of the User-Agent label set to empty.
RWHttpUserAgentHeader(const RWCString& value);
Constructs an RWHttpUserAgentHeader object with the associated value of the User-Agent label set to value. The RWCString should contain 7-bit US-ASCII data.
RWHttpUserAgentHeader(const RWHttpGenericHeader& hdr);
Constructs an RWHttpUserAgentHeader object from an RWHttpGenericHeader that represents a User-Agent header. If the RWHttpGenericHeader does not represent a User-Agent header or if the value of the RWHttpGenericHeader does not conform to the formatting of a User-Agent value, an RWHttpHeaderParseError exception is thrown.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.