Skip to content
Was this article helpful?

ICAP_RES_T


Operates on ICAP Response.

This topic lists the expressions that are provided by this class.

DATE

Returns the contents of the ICAP Date header as text or as a date object. The date formats recognized are:
RFC822. Sun, 06 Jan 1980 08:49:37 GMT
RFC850. Sunday, 06-Jan-80 9:49:37 GMT
ASCTIME. Sun Jan 6 08:49:37 1980

Returns: http_date_t


FULL_HEADER

Returns the entire ICAP response header (including the terminating \r\n\r\n)

Returns: text_t


HEADER (text_t header_name)

Returns the contents of the ICAP header specified by the String argument. The header name cannot be longer than 32 characters.

Parameters (expressions not allowed):

header_name- Header Name

Returns: http_header_t


IS_CLIENT_ERROR

Returns True if response code is 4xx.

Returns: bool_at


IS_SERVER_ERROR

Returns True if response code is 5xx.

Returns: bool_at


IS_SUCCESSFUL

Returns True if response code is 2xx.

Returns: bool_at


SET_COOKIE

Obtain the ICAP Set-Cookie Header Object from this response.

Returns: http_set_cookie_t


STATUS

Returns the ICAP response status code.

Returns: num_t


STATUS_MSG

Returns the ICAP response status message.

Returns: text_t


VERSION

Returns the ICAP version.

Returns: http_version_t


Was this article helpful?