The
HTTP_RESPONSE_HEADERS structure contains the headers sent with an HTTP response.
Syntax
typedef struct _HTTP_RESPONSE_HEADERS {
USHORT UnknownHeaderCount;
PHTTP_UNKNOWN_HEADER pUnknownHeaders;
USHORT TrailerCount;
PHTTP_UNKNOWN_HEADER pTrailers;
HTTP_KNOWN_HEADER KnownHeaders[HttpHeaderResponseMaximum];
}HTTP_RESPONSE_HEADERS, *PHTTP_RESPONSE_HEADERS;
Members
- UnknownHeaderCount
A number of unknown headers sent with the HTTP response and contained in the array pointed to by the pUnknownHeaders member. This number cannot exceed 9999.
- pUnknownHeaders
A pointer to an array of
HTTP_UNKNOWN_HEADER structures that contains one structure for each of the unknown headers sent in the HTTP response.
- TrailerCount
This member is reserved and must be zero.
- pTrailers
This member is reserved and must be NULL.
- KnownHeaders
Fixed-size array of
HTTP_KNOWN_HEADER structures. The
HTTP_HEADER_ID enumeration provides a mapping from header types to array indexes. If a known header of a given type is included in the HTTP response, the array element at the index that corresponds to that type specifies the header value. Those elements of the array for which no corresponding headers are present contain a zero-valued RawValueLength member. Use RawValueLength to determine the end of the header string pointed to by pRawValue, rather than relying on the string to have a terminating null.
Requirements
| Minimum supported client | Windows Vista, Windows XP with SP2 |
| Minimum supported server | Windows Server 2003 |
| Header | Http.h |
See Also
- HTTP Server API Version 1.0 Structures
- HTTP_KNOWN_HEADER
- HTTP_UNKNOWN_HEADER
- HTTP_RESPONSE
Send comments about this topic to Microsoft
Build date: 11/19/2009