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.

146 lines
4.8 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name :
  4. srvvarid.h
  5. Abstract:
  6. Author:
  7. Taylor Weiss ( TaylorW ) 19-Apr-1999
  8. Environment:
  9. Project:
  10. w3svc.dll private\inet\iis\svcs\w3\server
  11. wam.dll private\inet\iis\svcs\wam\object
  12. Functions Exported:
  13. Revision History:
  14. --*/
  15. #ifndef SRVVARID_H
  16. #define SRVVARID_H
  17. /*
  18. All server variables that we may want to cache for out of
  19. process performance.
  20. Currently this list includes the following:
  21. All HTTP 1.1 - General, Request and Content headers
  22. All the non-header server variables exposed in the ASP server variables
  23. collection. Except those that pose for headers (like HTTP_ALL)
  24. All the headers included in the http fast map
  25. */
  26. #define ALL_SERVER_VARIABLES() \
  27. DEFINE_SV( APPL_MD_PATH ) \
  28. DEFINE_SV( APPL_PHYSICAL_PATH ) \
  29. DEFINE_SV( AUTH_PASSWORD ) \
  30. DEFINE_SV( AUTH_TYPE ) \
  31. DEFINE_SV( AUTH_USER ) \
  32. DEFINE_SV( CERT_COOKIE ) \
  33. DEFINE_SV( CERT_FLAGS ) \
  34. DEFINE_SV( CERT_ISSUER ) \
  35. DEFINE_SV( CERT_KEYSIZE ) \
  36. DEFINE_SV( CERT_SECRETKEYSIZE ) \
  37. DEFINE_SV( CERT_SERIALNUMBER ) \
  38. DEFINE_SV( CERT_SERVER_ISSUER ) \
  39. DEFINE_SV( CERT_SERVER_SUBJECT ) \
  40. DEFINE_SV( CERT_SUBJECT ) \
  41. DEFINE_SV( CONTENT_LENGTH ) \
  42. DEFINE_SV( CONTENT_TYPE ) \
  43. DEFINE_SV( GATEWAY_INTERFACE ) \
  44. DEFINE_SV( HTTPS ) \
  45. DEFINE_SV( HTTPS_KEYSIZE ) \
  46. DEFINE_SV( HTTPS_SECRETKEYSIZE ) \
  47. DEFINE_SV( HTTPS_SERVER_ISSUER ) \
  48. DEFINE_SV( HTTPS_SERVER_SUBJECT ) \
  49. DEFINE_SV( INSTANCE_ID ) \
  50. DEFINE_SV( INSTANCE_META_PATH ) \
  51. DEFINE_SV( LOCAL_ADDR ) \
  52. DEFINE_SV( LOGON_USER ) \
  53. DEFINE_SV( PATH_INFO ) \
  54. DEFINE_SV( PATH_TRANSLATED ) \
  55. DEFINE_SV( QUERY_STRING ) \
  56. DEFINE_SV( REMOTE_ADDR ) \
  57. DEFINE_SV( REMOTE_HOST ) \
  58. DEFINE_SV( REMOTE_USER ) \
  59. DEFINE_SV( REQUEST_METHOD ) \
  60. DEFINE_SV( SCRIPT_NAME ) \
  61. DEFINE_SV( SERVER_NAME ) \
  62. DEFINE_SV( SERVER_PORT ) \
  63. DEFINE_SV( SERVER_PORT_SECURE ) \
  64. DEFINE_SV( SERVER_PROTOCOL ) \
  65. DEFINE_SV( SERVER_SOFTWARE ) \
  66. DEFINE_SV( URL ) \
  67. DEFINE_SV( HTTP_CACHE_CONTROL ) \
  68. DEFINE_SV( HTTP_CONNECTION ) \
  69. DEFINE_SV( HTTP_DATE ) \
  70. DEFINE_SV( HTTP_PRAGMA ) \
  71. DEFINE_SV( HTTP_TRANSFER_ENCODING ) \
  72. DEFINE_SV( HTTP_UPGRADE ) \
  73. DEFINE_SV( HTTP_TRAILER ) \
  74. DEFINE_SV( HTTP_VIA ) \
  75. DEFINE_SV( HTTP_ACCEPT ) \
  76. DEFINE_SV( HTTP_ACCEPT_CHARSET ) \
  77. DEFINE_SV( HTTP_ACCEPT_ENCODING ) \
  78. DEFINE_SV( HTTP_AUTHORIZATION ) \
  79. DEFINE_SV( HTTP_EXPECT ) \
  80. DEFINE_SV( HTTP_FROM ) \
  81. DEFINE_SV( HTTP_HOST ) \
  82. DEFINE_SV( HTTP_IF_MODIFIED_SINCE ) \
  83. DEFINE_SV( HTTP_IF_MATCH ) \
  84. DEFINE_SV( HTTP_IF_NONE_MATCH ) \
  85. DEFINE_SV( HTTP_IF_RANGE ) \
  86. DEFINE_SV( HTTP_IF_UNMODIFIED_SINCE ) \
  87. DEFINE_SV( HTTP_MAX_FORWARDS ) \
  88. DEFINE_SV( HTTP_PROXY_AUTHORIZATION ) \
  89. DEFINE_SV( HTTP_RANGE ) \
  90. DEFINE_SV( HTTP_REFERER ) \
  91. DEFINE_SV( HTTP_TE ) \
  92. DEFINE_SV( HTTP_USER_AGENT ) \
  93. DEFINE_SV( HTTP_ALLOW ) \
  94. DEFINE_SV( HTTP_CONTENT_ENCODING ) \
  95. DEFINE_SV( HTTP_CONTENT_LANGUAGE ) \
  96. DEFINE_SV( HTTP_CONTENT_LENGTH ) \
  97. DEFINE_SV( HTTP_CONTENT_LOCATION ) \
  98. DEFINE_SV( HTTP_CONTENT_MD5 ) \
  99. DEFINE_SV( HTTP_CONTENT_RANGE ) \
  100. DEFINE_SV( HTTP_CONTENT_TYPE ) \
  101. DEFINE_SV( HTTP_EXPIRES ) \
  102. DEFINE_SV( HTTP_LAST_MODIFIED ) \
  103. DEFINE_SV( HTTP_VERSION ) \
  104. DEFINE_SV( HTTP_UA_OS ) \
  105. // Define ordinals for each of the cachable server variables.
  106. #define DEFINE_SV( token ) \
  107. SVID_##token,
  108. #define END_SVID() \
  109. SVID_COUNT
  110. enum SV_IDS
  111. {
  112. ALL_SERVER_VARIABLES()
  113. END_SVID()
  114. };
  115. #undef DEFINE_SV
  116. #endif // SRVVARID_H