Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 2000-2002 Microsoft Corporation
  3. Module Name:
  4. httprcvp.h
  5. Abstract:
  6. Contains private http receive declarations.
  7. Author:
  8. Henry Sanders (henrysa) 10-Jun-1998
  9. Revision History:
  10. --*/
  11. #ifndef _HTTPRCVP_H_
  12. #define _HTTPRCVP_H_
  13. VOID
  14. UlpHandleRequest(
  15. IN PUL_WORK_ITEM pWorkItem
  16. );
  17. VOID
  18. UlpFreeReceiveBufferList(
  19. IN PSLIST_ENTRY pBufferList
  20. );
  21. NTSTATUS
  22. UlpParseNextRequest(
  23. IN PUL_HTTP_CONNECTION pConnection,
  24. IN BOOLEAN MoreRequestBuffer,
  25. OUT PIRP *pIrpToComplete
  26. );
  27. NTSTATUS
  28. UlpDeliverHttpRequest(
  29. IN PUL_HTTP_CONNECTION pConnection,
  30. OUT PBOOLEAN pResumeParsing,
  31. OUT PIRP *pIrpToComplete
  32. );
  33. VOID
  34. UlpInsertBuffer(
  35. IN PUL_HTTP_CONNECTION pConnection,
  36. IN PUL_REQUEST_BUFFER pRequestBuffer
  37. );
  38. VOID
  39. UlpMergeBuffers(
  40. IN PUL_REQUEST_BUFFER pDest,
  41. IN PUL_REQUEST_BUFFER pSrc
  42. );
  43. NTSTATUS
  44. UlpAdjustBuffers(
  45. IN PUL_HTTP_CONNECTION pConnection
  46. );
  47. VOID
  48. UlpCancelEntityBody(
  49. IN PDEVICE_OBJECT pDeviceObject,
  50. IN PIRP pIrp
  51. );
  52. VOID
  53. UlpCancelEntityBodyWorker(
  54. IN PUL_WORK_ITEM pWorkItem
  55. );
  56. NTSTATUS
  57. UlpHandle503Response(
  58. IN PUL_INTERNAL_REQUEST pRequest,
  59. IN PHTTP_RESPONSE pResponse
  60. );
  61. VOID
  62. UlpCompleteSendErrorResponse(
  63. IN PVOID pCompletionContext,
  64. IN NTSTATUS Status,
  65. IN ULONG_PTR Information
  66. );
  67. VOID
  68. UlpRestartSendSimpleStatus(
  69. IN PVOID pCompletionContext,
  70. IN NTSTATUS Status,
  71. IN ULONG_PTR Information
  72. );
  73. VOID
  74. UlpSendSimpleCleanupWorker(
  75. IN PUL_WORK_ITEM pWorkItem
  76. );
  77. VOID
  78. UlpConsumeBytesFromConnection(
  79. IN PUL_HTTP_CONNECTION pConnection,
  80. IN ULONG ByteCount
  81. );
  82. VOID
  83. UlpRestartHttpReceive(
  84. IN PVOID pContext,
  85. IN NTSTATUS Status,
  86. IN ULONG_PTR Information
  87. );
  88. VOID
  89. UlpDiscardBytesFromConnection(
  90. IN PUL_HTTP_CONNECTION pConnection
  91. );
  92. VOID
  93. UlpConnectionDisconnectWorker(
  94. IN PUL_WORK_ITEM pWorkItem
  95. );
  96. VOID
  97. UlpCloseConnectionWorker(
  98. IN PUL_WORK_ITEM pWorkItem
  99. );
  100. VOID
  101. UlpCloseDisconnectedConnection(
  102. IN PUL_HTTP_CONNECTION pConnection
  103. );
  104. VOID
  105. UlpConnectionDisconnectCompleteWorker(
  106. IN PUL_WORK_ITEM pWorkItem
  107. );
  108. VOID
  109. UlpDoConnectionDisconnect(
  110. IN PUL_HTTP_CONNECTION pConnection
  111. );
  112. #if DBG
  113. BOOLEAN
  114. UlpIsValidRequestBufferList(
  115. IN PUL_HTTP_CONNECTION pHttpConn
  116. );
  117. #endif // DBG
  118. #define ALLOC_REQUEST_BUFFER_INCREMENT 5
  119. BOOLEAN
  120. UlpReferenceBuffers(
  121. IN PUL_INTERNAL_REQUEST pRequest,
  122. IN PUL_REQUEST_BUFFER pRequestBuffer
  123. );
  124. VOID
  125. UlpInitErrorLogInfo(
  126. IN OUT PUL_ERROR_LOG_INFO pErrorLogInfo,
  127. IN PUL_HTTP_CONNECTION pHttpConn,
  128. IN PUL_INTERNAL_REQUEST pRequest,
  129. IN PCHAR pInfo,
  130. IN USHORT InfoSize
  131. );
  132. #endif // _HTTPRCVP_H_