Commit Graph

10 Commits

Author SHA1 Message Date
Azat Khuzhin
60c049375c Add ability to set user/password in http_handlers
This will allow to omit them in requests for
dynamic_query_handler/predefined_query_handler, that will allow to build
more indepenent handlers/apps.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-10-24 17:04:40 +02:00
Grigorii Sokolik
1245be5d97 feat-59620 tests 2024-06-13 11:21:47 +03:00
Constantine Peresypkin
fdc6de2a27 use http request body in predefined http handlers
adds a new "virtual" parameter `__request_body`
which can be used in http rules, see below

tremendously helps in producing arbitrary REST interfaces

for example:

```xml
<http_handlers>
  <rule>
    <methods>POST</methods>
    <url>/ingest</url>
    <handler>
      <type>predefined_query_handler</type>
      <query>INSERT INTO events(id, data) SELECT {id:UInt32}, {__request_body:String}</query>
    </handler>
  </rule>
</http_handlers>
```
2023-03-02 12:51:48 +01:00
Alexey Milovidov
b42d26acfe Remove one line from XML, because we do not care 2022-08-28 02:44:02 +02:00
Roman Nikonov
eded0d7f82 Tests for content_type override 2022-03-08 23:42:15 +03:00
Alexey Milovidov
e513a5db32 Change <yandex> to <clickhouse> in configs 2021-09-20 01:38:53 +03:00
Alexander Tokmakov
5a1d22a363 remove redundant configs from test 2020-04-28 02:05:15 +03:00
Alexander Tokmakov
e72a484beb minor fixes 2020-04-28 02:05:15 +03:00
zhang2014
81230944a4 ISSUES-5436 add integration test 2020-04-27 18:49:32 +08:00
zhang2014
0070f75218 ISSUES-5436 fix integration test failure & add test 2020-04-23 17:11:20 +08:00