Remove header serialization in favor of setting IIS response directly. (#228)

This commit is contained in:
Justin Kotalik 2017-11-06 20:28:08 -08:00 committed by GitHub
parent 13312109ff
commit 6bfcd4a2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

View File

@ -355,4 +355,30 @@ http_cancel_io(
return pHttpContext->CancelIo();
}
EXTERN_C __MIDL_DECLSPEC_DLLEXPORT
HRESULT
http_response_set_unknown_header(
_In_ IHttpContext* pHttpContext,
_In_ PCSTR pszHeaderName,
_In_ PCSTR pszHeaderValue,
_In_ USHORT usHeaderValueLength,
_In_ BOOL fReplace
)
{
return pHttpContext->GetResponse()->SetHeader( pszHeaderName, pszHeaderValue, usHeaderValueLength, fReplace );
}
EXTERN_C __MIDL_DECLSPEC_DLLEXPORT
HRESULT
http_response_set_known_header(
_In_ IHttpContext* pHttpContext,
_In_ HTTP_HEADER_ID dwHeaderId,
_In_ PCSTR pszHeaderValue,
_In_ USHORT usHeaderValueLength,
_In_ BOOL fReplace
)
{
return pHttpContext->GetResponse()->SetHeader( dwHeaderId, pszHeaderValue, usHeaderValueLength, fReplace );
}
// End of export