大网数据广告活动
Web服务器与PHP

Configuring Properties

· 52CE 我爱测

The HTTP Server version 2.0 API allows applications to manually configure request queues, server sessions, and URL groups. The server session is the top-level object that contains configuration information that applies to all the URL groups created under them. The application creates a server session with one or more URL groups under it, and then…

The HTTP Server version 2.0 API allows applications to manually configure request queues, server sessions, and URL groups. The server session is the top-level object that contains configuration information that applies to all the URL groups created under them. The application creates a server session with one or more URL groups under it, and then associates the URL group with a request queue.

For more information about specific configuration objects in HTTP Server version 2.0 API, see:

Properties for the configuration objects are set with the HttpSetServerSessionProperty, the HttpSetUrlGroupProperty and the HttpSetRequestQueueProperty as shown in the diagram below. The association between the request queue and the URL Group can be changed on demand whereas the association between the Server Session and the URL Groups cannot be changed. The URL Groups must be associated with a request queue to receive requests.

properties for the configuration objects

The following table lists the properties that can be set on each configuration object. In general, if no property configuration is set by the application, the HTTP Server API default configurations apply. The configuration properties set by the application on the server session override the HTTP Server API-wide configurations. The configurations set on the URL group override the server session configurations and the request queue configurations override the HTTP Server API default configurations.

Configuration Object Property
Server Session HttpServerStateProperty HttpServerLoggingProperty HttpServerQosProperty HttpServerTimeoutsProperty HttpServerAuthenticationProperty
URL Group HttpServerStateProperty HttpServerAuthenticationProperty HttpServerLoggingProperty HttpServerQosProperty HttpServerBindingProperty HttpServerTimeoutsProperty
Request Queue HttpServerStateProperty HttpServerQueueLengthProperty HttpServer503VerbosityProperty

The server session properties are defined in the HTTP_SERVER_PROPERTY enumeration. The following table lists the property structures that are set for each property type and the HTTP Server API default when these properties are not set by the application.

Property Structure HTTP Server API Default
HttpServerAuthenticatonProperty HTTP_SERVER_AUTHENTICATION_INFO No Authentication
HttpServerLoggingProperty HTTP_LOGGING_INFO No Logging
HttpServerQosProperty->HttpQosSettingTypeConnectionLimit HTTP_CONNECTION_LIMIT_INFO No Limit
HttpServerTimeoutsProperty HTTP_TIMEOUT_LIMIT_INFO 120 sec.
HttpServerQosProperty->HttpQosSettingTypeBandwidth HTTP_BANDWIDTH_LIMIT_INFO No Limit
HttpServerQueueLengthProperty ULONG 1000
HttpServerStateProperty HTTP_STATE_INFO Enabled
HttpServer503VerbosityProperty HTTP_503_RESPONSE_VERBOSITY HttpResponseVerbosityBasic
HttpServerBindingProperty HTTP_BINDING_INFO None

The following table lists the minimum and and maximum values for the HTTP Server API configurations.

Property HTTP Server API Maximum and Minimum
HttpServerQosProperty->HttpQosSettingTypeBandwidth Min = MIN_ALLOWED_BANDWIDTH_THROTTLING_RATE Max = none
HttpServerQueueLengthProperty Min = 0xA Max = 0xFFFF

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。