setAccept(value: String, index: Integer io);
The setAccept method of the JadeHTTPConnection class sets "Accept" HTTP headers.
The value parameter specifies the string value for the Accept key; for example, "text/xml".
If you specify a value for the index parameter and the Accept key exists at the specified position in the list of headers, the corresponding entry is removed from the list if the value is null. If the value is non-null, the corresponding value is replaced. If there is no Accept key in the specified position, the key-value pair is added at the position.