Microsoft Internet Security and Acceleration Server 2004 SDK

WPX_FILTER_PREPROC_HEADERS

The ISA Server Web proxy includes a pointer to the WPX_FILTER_PREPROC_HEADERS structure in the notification that it sends to Web filters when it preprocesses a request's headers or a Web server response's headers. If your filter should be notified for this event, it must register to receive SF_NOTIFY_PREPROC_HEADERS or SF_NOTIFY_RECEIVE_RESPONSE_HEADERS notifications. For more information about the types of event notifications that are sent to Web filters, see Event Notifications.

typedef struct _WPX_FILTER_PREPROC_HEADERS {
BOOL (WINAPI)* GetHeader;
BOOL (WINAPI)* SetHeader;
BOOL (WINAPI)* AddHeader;
DWORD HttpStatus;
DWORD dwReserved;
BOOL (WINAPI)* SetUserCachingKey; } WPX_FILTER_PREPROC_HEADERS,
*PWPX_FILTER_PREPROC_HEADERS;

Members

GetHeader
Pointer to the GetHeader callback function, which can be used to retrieve a specified header, a portion of the request line in the request, or the status from the response. Header names include a trailing colon (:). Individual portions of the request line are specified by the special values "body" (for requests only), "method", "URL", and "version". The status from the response line is specified by the special value "status". The special values are case-sensitive and must not include the trailing colon.
SetHeader
Pointer to the SetHeader callback function, which can be used to modify or delete the value of a header or to modify a portion of the request line or the response line that is specified by a special value.
AddHeader
Pointer to the AddHeader callback function, which can be used to add an HTTP header to the response.
HttpStatus
Not used.
dwReserved
A DWORD reserved for later use.
SetUserCachingKey
Sets the user caching key.

Remarks

When the server is about to process the client headers, it sends a notification by calling the HttpFilterProc entry-point function of each Web filter that is registered to receive the notification. The pvNotification parameter contains a pointer to an WPX_FILTER_PREPROC_HEADERS structure, and the notificationType parameter is set to SF_NOTIFY_PREPROC_HEADERS.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wpxhttpfilt.h.

See Also

Notification Structures