blob: adb3344623fd439cb7e6bdf687420345fa08c6b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-->
<typesystem package="PySide6.QtHttpServer">
<load-typesystem name="QtConcurrent/typesystem_concurrent.xml" generate="no"/>
<load-typesystem name="QtWebSockets/typesystem_websockets.xml" generate="no"/>
<typedef-type name="QFutureHttpServerResponse" source="QFuture<QHttpServerResponse>"/>
<object-type name="QAbstractHttpServer"/>
<object-type name="QHttpServer">
<extra-includes>
<include file-name="QtHttpServer/QHttpServerRequest" location="global"/>
<include file-name="QtHttpServer/QHttpServerRouterRule" location="global"/>
</extra-includes>
<add-function signature="route(const QString &@rule@, PyCallable @callback@)"
return-type="bool">
<inject-code class="target" position="beginning" file="../glue/qhttpserver.cpp"
snippet="qhttpserver-route"/>
</add-function>
<add-function signature="afterRequest(PyCallable @callback@)">
<inject-code class="target" position="beginning" file="../glue/qhttpserver.cpp"
snippet="qhttpserver-afterrequest"/>
</add-function>
</object-type>
<object-type name="QHttpServerFutureResponse"/>
<object-type name="QHttpServerResponder">
<enum-type name="StatusCode"/>
</object-type>
<object-type name="QHttpServerRequest">
<enum-type name="Method" flags="Methods"/>
</object-type>
<object-type name="QHttpServerResponse"/>
<object-type name="QHttpServerRouter"/>
<object-type name="QHttpServerRouterRule"/>
</typesystem>
|