mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Update http.md
This commit is contained in:
parent
d3ba5da748
commit
fe9c4e710f
@ -426,6 +426,9 @@ Next are the configuration methods for different `type`.
|
|||||||
|
|
||||||
The following example defines the values of [max_threads](../operations/settings/settings.md#settings-max_threads) and `max_alter_threads` settings, then queries the system table to check whether these settings were set successfully.
|
The following example defines the values of [max_threads](../operations/settings/settings.md#settings-max_threads) and `max_alter_threads` settings, then queries the system table to check whether these settings were set successfully.
|
||||||
|
|
||||||
|
!!! note "Warning"
|
||||||
|
To keep the default `handlers` such as` query`, `play`,` ping`, use the `<defaults/>` rule.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
``` xml
|
``` xml
|
||||||
@ -443,6 +446,7 @@ Example:
|
|||||||
<query>SELECT name, value FROM system.settings WHERE name = {name_2:String}</query>
|
<query>SELECT name, value FROM system.settings WHERE name = {name_2:String}</query>
|
||||||
</handler>
|
</handler>
|
||||||
</rule>
|
</rule>
|
||||||
|
<defaults/>
|
||||||
</http_handlers>
|
</http_handlers>
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -475,6 +479,7 @@ Example:
|
|||||||
<query_param_name>query_param</query_param_name>
|
<query_param_name>query_param</query_param_name>
|
||||||
</handler>
|
</handler>
|
||||||
</rule>
|
</rule>
|
||||||
|
<defaults/>
|
||||||
</http_handlers>
|
</http_handlers>
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -505,6 +510,7 @@ Return a message.
|
|||||||
<response_content>Say Hi!</response_content>
|
<response_content>Say Hi!</response_content>
|
||||||
</handler>
|
</handler>
|
||||||
</rule>
|
</rule>
|
||||||
|
<defaults/>
|
||||||
</http_handlers>
|
</http_handlers>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user