@gjsify/http-soup-bridge 0.22.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,16 +69,19 @@ yarn workspace @gjsify/http-soup-bridge run build:meson
69
69
  yarn workspace @gjsify/http-soup-bridge run build:prebuilds
70
70
  ```
71
71
 
72
- This produces `prebuilds/linux-x86_64/{libgjsifyhttpsoupbridge.so,
72
+ This produces `prebuilds/linux-x64/{libgjsifyhttpsoupbridge.so,
73
73
  GjsifyHttpSoupBridge-1.0.gir, GjsifyHttpSoupBridge-1.0.typelib}`. The
74
74
  `@gjsify/cli` runtime injects `LD_LIBRARY_PATH` and `GI_TYPELIB_PATH` from
75
75
  the `gjsify.prebuilds` field at startup, so consumers don't need to install
76
76
  the bridge into a system path.
77
77
 
78
78
  The CI workflow at `.github/workflows/prebuilds.yml` builds prebuilds for
79
- linux-x86_64, linux-aarch64, linux-ppc64, linux-s390x, and linux-riscv64
80
- and auto-commits them to the repo. x86_64 and aarch64 use native GitHub
81
- runners; ppc64, s390x, and riscv64 use QEMU via `uraimo/run-on-arch-action`.
79
+ linux-x64, linux-arm64, linux-ppc64, linux-s390x, linux-riscv64 and
80
+ darwin-arm64, and auto-commits them to the repo. linux x64/arm64 and
81
+ darwin-arm64 use native GitHub runners; ppc64, s390x, and riscv64 use QEMU
82
+ via `uraimo/run-on-arch-action`. The macOS artifact is named
83
+ `libgjsifyhttpsoupbridge.dylib` and its typelib records that leaf — see
84
+ [Platform coverage](#platform-coverage).
82
85
 
83
86
  ## TS types
84
87
 
@@ -94,3 +97,19 @@ npx @ts-for-gir/cli generate \
94
97
 
95
98
  After publication this step disappears — the package's `dependencies`
96
99
  already references `@girs/gjsifyhttpsoupbridge-1.0`.
100
+
101
+ ## Platform coverage
102
+
103
+ | Platform | Prebuild | Built by |
104
+ |---|---|---|
105
+ | `linux-x64` | ✅ `.so` + `.gir` + `.typelib` | native runner |
106
+ | `linux-arm64` | ✅ | native runner |
107
+ | `linux-ppc64`, `linux-s390x`, `linux-riscv64` | ✅ | QEMU emulation |
108
+ | `darwin-arm64` (macOS, Apple silicon) | ✅ `.dylib` + `.gir` + `.typelib` | `macos-latest` runner |
109
+ | `darwin-x64` (macOS, Intel) | ❌ | — no runner leg yet |
110
+ | Windows | ❌ | — no Vala/GI bridge in this repo targets Windows |
111
+
112
+ **Known gap — a `darwin-arm64` prebuild is built and shipped, but the CLI does not
113
+ load it yet.** `detectNativePackages()` (`packages/infra/cli/src/utils/detect-native-packages.ts`)
114
+ hardcodes a `linux-` directory prefix, and `buildNativeEnv()` exports `LD_LIBRARY_PATH`,
115
+ which macOS `dyld` ignores in favour of `DYLD_LIBRARY_PATH`.
package/meson.build CHANGED
@@ -23,12 +23,32 @@ libGjsifyHttpSoupBridge = library('gjsifyhttpsoupbridge', sources,
23
23
  install_dir: [true, true, true, true],
24
24
  )
25
25
 
26
+ # ----------------------------------------------------------------------------
27
+ # Host-dependent shared-library leaf name.
28
+ #
29
+ # The typelib records the exact filename gjs' g_module_open() resolves at load
30
+ # time, and meson names the shared library per host convention: lib<name>.so on
31
+ # ELF hosts, lib<name>.dylib on macOS. Recording the wrong leaf yields a typelib
32
+ # that IS found via GI_TYPELIB_PATH but whose library never loads — a silent,
33
+ # confusing failure. Mirrors the branch in packages/napi/napi/meson.build.
34
+ #
35
+ # Windows is deliberately absent: this bridge has had no Windows portability
36
+ # work, so `else` (ELF naming) is the honest fallback rather than a .dll branch
37
+ # that would imply support which does not exist.
38
+ # ----------------------------------------------------------------------------
39
+ host_system = host_machine.system()
40
+ if host_system == 'darwin'
41
+ shared_lib_name = 'libgjsifyhttpsoupbridge.dylib'
42
+ else
43
+ shared_lib_name = 'libgjsifyhttpsoupbridge.so'
44
+ endif
45
+
26
46
  g_ir_compiler = find_program('g-ir-compiler')
27
47
 
28
48
  custom_target(meson.project_name() + '-1.0.typelib',
29
49
  command: [
30
50
  g_ir_compiler,
31
- '--shared-library', 'libgjsifyhttpsoupbridge.so',
51
+ '--shared-library', shared_lib_name,
32
52
  '--output', '@OUTPUT@',
33
53
  meson.current_build_dir() / meson.project_name() + '-1.0.gir',
34
54
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/http-soup-bridge",
3
- "version": "0.22.0",
3
+ "version": "0.24.1",
4
4
  "description": "Vala-based main-thread bridge for libsoup HTTP server. Marshals SoupServer + SoupServerMessage signals onto the GLib main context and keeps every libsoup boxed type (MessageBody, MessageHeaders, the message's GMainContext ref, the HTTP1 IO GSource) on the C side, so SpiderMonkey GC has no chance to race a libsoup-side cleanup. Used by @gjsify/http to keep MCP/SSE/long-poll workloads stable on GJS.",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -19,6 +19,14 @@
19
19
  "src/vala"
20
20
  ],
21
21
  "gjsify": {
22
+ "platforms": [
23
+ "linux-x64",
24
+ "linux-arm64",
25
+ "linux-ppc64",
26
+ "linux-s390x",
27
+ "linux-riscv64",
28
+ "darwin-arm64"
29
+ ],
22
30
  "prebuilds": "prebuilds",
23
31
  "runtimes": {
24
32
  "gjs": "polyfill",
@@ -37,8 +45,8 @@
37
45
  "build:gjsify": "gjsify build --library 'src/ts/**/*.{ts,js}'",
38
46
  "build:meson": "gjsify run init:meson && meson compile -C build",
39
47
  "build:types": "gjsify tsc",
40
- "build:gir-types": "ts-for-gir generate --externalDeps --allowMissingDeps --girDirectories=./prebuilds/linux-x86_64 --girDirectories=/usr/share/gir-1.0 --modules=GjsifyHttpSoupBridge-1.0 --outdir=src/ts --npmScope=@girs --package=false --ignoreVersionConflicts=true",
41
- "build:prebuilds": "gjsify run build:meson && mkdir -p prebuilds/linux-x86_64 && cp build/libgjsifyhttpsoupbridge.so build/GjsifyHttpSoupBridge-1.0.gir build/GjsifyHttpSoupBridge-1.0.typelib prebuilds/linux-x86_64/"
48
+ "build:gir-types": "ts-for-gir generate --externalDeps --allowMissingDeps --girDirectories=./prebuilds/linux-x64 --girDirectories=/usr/share/gir-1.0 --modules=GjsifyHttpSoupBridge-1.0 --outdir=src/ts --npmScope=@girs --package=false --ignoreVersionConflicts=true",
49
+ "build:prebuilds": "gjsify run build:meson && node ../../../scripts/stage-prebuild.mjs ."
42
50
  },
43
51
  "keywords": [
44
52
  "gjs",
@@ -59,7 +67,7 @@
59
67
  "@girs/soup-3.0": "^4.1.0"
60
68
  },
61
69
  "devDependencies": {
62
- "@gjsify/cli": "^0.22.0",
70
+ "@gjsify/cli": "^0.24.1",
63
71
  "@ts-for-gir/cli": "^4.1.0",
64
72
  "@types/node": "^25.9.2",
65
73
  "typescript": "^6.0.3"
@@ -0,0 +1,533 @@
1
+ <?xml version="1.0"?>
2
+ <!-- GjsifyHttpSoupBridge-1.0.gir generated by valac 0.56.19, do not modify. -->
3
+ <repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:doc="http://www.gtk.org/introspection/doc/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
4
+ <include name="GObject" version="2.0"/>
5
+ <include name="Soup" version="3.0"/>
6
+ <include name="Gio" version="2.0"/>
7
+ <include name="GLib" version="2.0"/>
8
+ <package name="gjsifyhttpsoupbridge"/>
9
+ <c:include name="gjsifyhttpsoupbridge.h"/>
10
+ <doc:format name="unknown"/>
11
+ <namespace name="GjsifyHttpSoupBridge" version="1.0" shared-library="libgjsifyhttpsoupbridge.dylib" c:prefix="GjsifyHttpSoupBridge" c:identifier-prefixes="GjsifyHttpSoupBridge" c:symbol-prefixes="gjsify_http_soup_bridge">
12
+ <class name="Response" c:type="GjsifyHttpSoupBridgeResponse" c:symbol-prefix="response" glib:type-name="GjsifyHttpSoupBridgeResponse" glib:get-type="gjsify_http_soup_bridge_response_get_type" glib:type-struct="ResponseClass" parent="GObject.Object">
13
+ <field name="parent_instance" readable="0" private="1">
14
+ <type name="GObject.Object" c:type="GObject"/>
15
+ </field>
16
+ <field name="priv" readable="0" private="1">
17
+ <type name="ResponsePrivate" c:type="GjsifyHttpSoupBridgeResponsePrivate*"/>
18
+ </field>
19
+ <method name="set_header" c:identifier="gjsify_http_soup_bridge_response_set_header">
20
+ <return-value transfer-ownership="full">
21
+ <type name="none" c:type="void"/>
22
+ </return-value>
23
+ <parameters>
24
+ <instance-parameter name="self" transfer-ownership="none">
25
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
26
+ </instance-parameter>
27
+ <parameter name="name" transfer-ownership="none">
28
+ <type name="utf8" c:type="const gchar*"/>
29
+ </parameter>
30
+ <parameter name="value" transfer-ownership="none">
31
+ <type name="utf8" c:type="const gchar*"/>
32
+ </parameter>
33
+ </parameters>
34
+ </method>
35
+ <method name="append_header" c:identifier="gjsify_http_soup_bridge_response_append_header">
36
+ <return-value transfer-ownership="full">
37
+ <type name="none" c:type="void"/>
38
+ </return-value>
39
+ <parameters>
40
+ <instance-parameter name="self" transfer-ownership="none">
41
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
42
+ </instance-parameter>
43
+ <parameter name="name" transfer-ownership="none">
44
+ <type name="utf8" c:type="const gchar*"/>
45
+ </parameter>
46
+ <parameter name="value" transfer-ownership="none">
47
+ <type name="utf8" c:type="const gchar*"/>
48
+ </parameter>
49
+ </parameters>
50
+ </method>
51
+ <method name="remove_header" c:identifier="gjsify_http_soup_bridge_response_remove_header">
52
+ <return-value transfer-ownership="full">
53
+ <type name="none" c:type="void"/>
54
+ </return-value>
55
+ <parameters>
56
+ <instance-parameter name="self" transfer-ownership="none">
57
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
58
+ </instance-parameter>
59
+ <parameter name="name" transfer-ownership="none">
60
+ <type name="utf8" c:type="const gchar*"/>
61
+ </parameter>
62
+ </parameters>
63
+ </method>
64
+ <method name="get_header" c:identifier="gjsify_http_soup_bridge_response_get_header">
65
+ <return-value transfer-ownership="full" nullable="1">
66
+ <type name="utf8" c:type="gchar*"/>
67
+ </return-value>
68
+ <parameters>
69
+ <instance-parameter name="self" transfer-ownership="none">
70
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
71
+ </instance-parameter>
72
+ <parameter name="name" transfer-ownership="none">
73
+ <type name="utf8" c:type="const gchar*"/>
74
+ </parameter>
75
+ </parameters>
76
+ </method>
77
+ <method name="header_names" c:identifier="gjsify_http_soup_bridge_response_header_names">
78
+ <return-value transfer-ownership="full">
79
+ <array length="0" c:type="gchar**">
80
+ <type name="utf8" c:type="gchar*"/>
81
+ </array>
82
+ </return-value>
83
+ <parameters>
84
+ <instance-parameter name="self" transfer-ownership="none">
85
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
86
+ </instance-parameter>
87
+ <parameter name="result_length1" direction="out" transfer-ownership="none">
88
+ <type name="gint" c:type="gint*"/>
89
+ </parameter>
90
+ </parameters>
91
+ </method>
92
+ <method name="write_head" c:identifier="gjsify_http_soup_bridge_response_write_head">
93
+ <return-value transfer-ownership="full">
94
+ <type name="none" c:type="void"/>
95
+ </return-value>
96
+ <parameters>
97
+ <instance-parameter name="self" transfer-ownership="none">
98
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
99
+ </instance-parameter>
100
+ <parameter name="code" transfer-ownership="none">
101
+ <type name="guint" c:type="guint"/>
102
+ </parameter>
103
+ <parameter name="reason" transfer-ownership="none" nullable="1">
104
+ <type name="utf8" c:type="const gchar*"/>
105
+ </parameter>
106
+ </parameters>
107
+ </method>
108
+ <method name="write_chunk" c:identifier="gjsify_http_soup_bridge_response_write_chunk">
109
+ <return-value transfer-ownership="full">
110
+ <type name="gboolean" c:type="gboolean"/>
111
+ </return-value>
112
+ <parameters>
113
+ <instance-parameter name="self" transfer-ownership="none">
114
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
115
+ </instance-parameter>
116
+ <parameter name="chunk" transfer-ownership="none">
117
+ <array length="1" c:type="guint8*">
118
+ <type name="guint8" c:type="guint8"/>
119
+ </array>
120
+ </parameter>
121
+ <parameter name="chunk_length1" transfer-ownership="none">
122
+ <type name="gint" c:type="gint"/>
123
+ </parameter>
124
+ </parameters>
125
+ </method>
126
+ <method name="end" c:identifier="gjsify_http_soup_bridge_response_end">
127
+ <return-value transfer-ownership="full">
128
+ <type name="none" c:type="void"/>
129
+ </return-value>
130
+ <parameters>
131
+ <instance-parameter name="self" transfer-ownership="none">
132
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
133
+ </instance-parameter>
134
+ </parameters>
135
+ </method>
136
+ <method name="end_with" c:identifier="gjsify_http_soup_bridge_response_end_with">
137
+ <return-value transfer-ownership="full">
138
+ <type name="none" c:type="void"/>
139
+ </return-value>
140
+ <parameters>
141
+ <instance-parameter name="self" transfer-ownership="none">
142
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
143
+ </instance-parameter>
144
+ <parameter name="chunk" transfer-ownership="none">
145
+ <array length="1" c:type="guint8*">
146
+ <type name="guint8" c:type="guint8"/>
147
+ </array>
148
+ </parameter>
149
+ <parameter name="chunk_length1" transfer-ownership="none">
150
+ <type name="gint" c:type="gint"/>
151
+ </parameter>
152
+ </parameters>
153
+ </method>
154
+ <method name="abort" c:identifier="gjsify_http_soup_bridge_response_abort">
155
+ <return-value transfer-ownership="full">
156
+ <type name="none" c:type="void"/>
157
+ </return-value>
158
+ <parameters>
159
+ <instance-parameter name="self" transfer-ownership="none">
160
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
161
+ </instance-parameter>
162
+ </parameters>
163
+ </method>
164
+ <property name="status-code" writable="1">
165
+ <type name="guint" c:type="guint"/>
166
+ </property>
167
+ <method name="get_status_code" c:identifier="gjsify_http_soup_bridge_response_get_status_code">
168
+ <return-value transfer-ownership="none">
169
+ <type name="guint" c:type="guint"/>
170
+ </return-value>
171
+ <parameters>
172
+ <instance-parameter name="self" transfer-ownership="none">
173
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
174
+ </instance-parameter>
175
+ </parameters>
176
+ </method>
177
+ <method name="set_status_code" c:identifier="gjsify_http_soup_bridge_response_set_status_code">
178
+ <return-value transfer-ownership="none">
179
+ <type name="none" c:type="void"/>
180
+ </return-value>
181
+ <parameters>
182
+ <instance-parameter name="self" transfer-ownership="none">
183
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
184
+ </instance-parameter>
185
+ <parameter name="value" transfer-ownership="none">
186
+ <type name="guint" c:type="guint"/>
187
+ </parameter>
188
+ </parameters>
189
+ </method>
190
+ <property name="status-message" writable="1">
191
+ <type name="utf8" c:type="gchar*"/>
192
+ </property>
193
+ <method name="get_status_message" c:identifier="gjsify_http_soup_bridge_response_get_status_message">
194
+ <return-value transfer-ownership="none">
195
+ <type name="utf8" c:type="const gchar*"/>
196
+ </return-value>
197
+ <parameters>
198
+ <instance-parameter name="self" transfer-ownership="none">
199
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
200
+ </instance-parameter>
201
+ </parameters>
202
+ </method>
203
+ <method name="set_status_message" c:identifier="gjsify_http_soup_bridge_response_set_status_message">
204
+ <return-value transfer-ownership="none">
205
+ <type name="none" c:type="void"/>
206
+ </return-value>
207
+ <parameters>
208
+ <instance-parameter name="self" transfer-ownership="none">
209
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
210
+ </instance-parameter>
211
+ <parameter name="value" transfer-ownership="none">
212
+ <type name="utf8" c:type="const gchar*"/>
213
+ </parameter>
214
+ </parameters>
215
+ </method>
216
+ <property name="headers-sent" writable="1">
217
+ <type name="gboolean" c:type="gboolean"/>
218
+ </property>
219
+ <method name="get_headers_sent" c:identifier="gjsify_http_soup_bridge_response_get_headers_sent">
220
+ <return-value transfer-ownership="none">
221
+ <type name="gboolean" c:type="gboolean"/>
222
+ </return-value>
223
+ <parameters>
224
+ <instance-parameter name="self" transfer-ownership="none">
225
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
226
+ </instance-parameter>
227
+ </parameters>
228
+ </method>
229
+ <property name="finished" writable="1">
230
+ <type name="gboolean" c:type="gboolean"/>
231
+ </property>
232
+ <method name="get_finished" c:identifier="gjsify_http_soup_bridge_response_get_finished">
233
+ <return-value transfer-ownership="none">
234
+ <type name="gboolean" c:type="gboolean"/>
235
+ </return-value>
236
+ <parameters>
237
+ <instance-parameter name="self" transfer-ownership="none">
238
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
239
+ </instance-parameter>
240
+ </parameters>
241
+ </method>
242
+ <property name="aborted" writable="1">
243
+ <type name="gboolean" c:type="gboolean"/>
244
+ </property>
245
+ <method name="get_aborted" c:identifier="gjsify_http_soup_bridge_response_get_aborted">
246
+ <return-value transfer-ownership="none">
247
+ <type name="gboolean" c:type="gboolean"/>
248
+ </return-value>
249
+ <parameters>
250
+ <instance-parameter name="self" transfer-ownership="none">
251
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
252
+ </instance-parameter>
253
+ </parameters>
254
+ </method>
255
+ <glib:signal name="close">
256
+ <return-value transfer-ownership="full">
257
+ <type name="none" c:type="void"/>
258
+ </return-value>
259
+ </glib:signal>
260
+ <glib:signal name="drain">
261
+ <return-value transfer-ownership="full">
262
+ <type name="none" c:type="void"/>
263
+ </return-value>
264
+ </glib:signal>
265
+ </class>
266
+ <record name="ResponseClass" c:type="GjsifyHttpSoupBridgeResponseClass" glib:is-gtype-struct-for="Response">
267
+ <field name="parent_class" readable="0" private="1">
268
+ <type name="GObject.ObjectClass" c:type="GObjectClass"/>
269
+ </field>
270
+ </record>
271
+ <record name="ResponsePrivate" c:type="GjsifyHttpSoupBridgeResponsePrivate" disguised="1"/>
272
+ <class name="Request" c:type="GjsifyHttpSoupBridgeRequest" c:symbol-prefix="request" glib:type-name="GjsifyHttpSoupBridgeRequest" glib:get-type="gjsify_http_soup_bridge_request_get_type" glib:type-struct="RequestClass" parent="GObject.Object">
273
+ <field name="parent_instance" readable="0" private="1">
274
+ <type name="GObject.Object" c:type="GObject"/>
275
+ </field>
276
+ <field name="priv" readable="0" private="1">
277
+ <type name="RequestPrivate" c:type="GjsifyHttpSoupBridgeRequestPrivate*"/>
278
+ </field>
279
+ <method name="get_body" c:identifier="gjsify_http_soup_bridge_request_get_body">
280
+ <return-value transfer-ownership="full">
281
+ <array length="0" c:type="guint8*">
282
+ <type name="guint8" c:type="guint8"/>
283
+ </array>
284
+ </return-value>
285
+ <parameters>
286
+ <instance-parameter name="self" transfer-ownership="none">
287
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
288
+ </instance-parameter>
289
+ <parameter name="result_length1" direction="out" transfer-ownership="none">
290
+ <type name="gint" c:type="gint*"/>
291
+ </parameter>
292
+ </parameters>
293
+ </method>
294
+ <property name="method" writable="1">
295
+ <type name="utf8" c:type="gchar*"/>
296
+ </property>
297
+ <method name="get_method" c:identifier="gjsify_http_soup_bridge_request_get_method">
298
+ <return-value transfer-ownership="none">
299
+ <type name="utf8" c:type="const gchar*"/>
300
+ </return-value>
301
+ <parameters>
302
+ <instance-parameter name="self" transfer-ownership="none">
303
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
304
+ </instance-parameter>
305
+ </parameters>
306
+ </method>
307
+ <property name="url" writable="1">
308
+ <type name="utf8" c:type="gchar*"/>
309
+ </property>
310
+ <method name="get_url" c:identifier="gjsify_http_soup_bridge_request_get_url">
311
+ <return-value transfer-ownership="none">
312
+ <type name="utf8" c:type="const gchar*"/>
313
+ </return-value>
314
+ <parameters>
315
+ <instance-parameter name="self" transfer-ownership="none">
316
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
317
+ </instance-parameter>
318
+ </parameters>
319
+ </method>
320
+ <property name="remote-address" writable="1">
321
+ <type name="utf8" c:type="gchar*"/>
322
+ </property>
323
+ <method name="get_remote_address" c:identifier="gjsify_http_soup_bridge_request_get_remote_address">
324
+ <return-value transfer-ownership="none">
325
+ <type name="utf8" c:type="const gchar*"/>
326
+ </return-value>
327
+ <parameters>
328
+ <instance-parameter name="self" transfer-ownership="none">
329
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
330
+ </instance-parameter>
331
+ </parameters>
332
+ </method>
333
+ <property name="remote-port" writable="1">
334
+ <type name="guint" c:type="guint"/>
335
+ </property>
336
+ <method name="get_remote_port" c:identifier="gjsify_http_soup_bridge_request_get_remote_port">
337
+ <return-value transfer-ownership="none">
338
+ <type name="guint" c:type="guint"/>
339
+ </return-value>
340
+ <parameters>
341
+ <instance-parameter name="self" transfer-ownership="none">
342
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
343
+ </instance-parameter>
344
+ </parameters>
345
+ </method>
346
+ <property name="header-pairs" writable="1">
347
+ <array c:type="gchar**">
348
+ <type name="utf8" c:type="gchar*"/>
349
+ </array>
350
+ </property>
351
+ <method name="get_header_pairs" c:identifier="gjsify_http_soup_bridge_request_get_header_pairs">
352
+ <return-value transfer-ownership="none">
353
+ <array length="0" c:type="gchar**">
354
+ <type name="utf8" c:type="gchar*"/>
355
+ </array>
356
+ </return-value>
357
+ <parameters>
358
+ <instance-parameter name="self" transfer-ownership="none">
359
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
360
+ </instance-parameter>
361
+ <parameter name="result_length1" direction="out" transfer-ownership="none">
362
+ <type name="gint" c:type="gint*"/>
363
+ </parameter>
364
+ </parameters>
365
+ </method>
366
+ <property name="aborted" writable="1">
367
+ <type name="gboolean" c:type="gboolean"/>
368
+ </property>
369
+ <method name="get_aborted" c:identifier="gjsify_http_soup_bridge_request_get_aborted">
370
+ <return-value transfer-ownership="none">
371
+ <type name="gboolean" c:type="gboolean"/>
372
+ </return-value>
373
+ <parameters>
374
+ <instance-parameter name="self" transfer-ownership="none">
375
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
376
+ </instance-parameter>
377
+ </parameters>
378
+ </method>
379
+ <glib:signal name="aborted-signal">
380
+ <return-value transfer-ownership="full">
381
+ <type name="none" c:type="void"/>
382
+ </return-value>
383
+ </glib:signal>
384
+ <glib:signal name="close">
385
+ <return-value transfer-ownership="full">
386
+ <type name="none" c:type="void"/>
387
+ </return-value>
388
+ </glib:signal>
389
+ </class>
390
+ <record name="RequestClass" c:type="GjsifyHttpSoupBridgeRequestClass" glib:is-gtype-struct-for="Request">
391
+ <field name="parent_class" readable="0" private="1">
392
+ <type name="GObject.ObjectClass" c:type="GObjectClass"/>
393
+ </field>
394
+ </record>
395
+ <record name="RequestPrivate" c:type="GjsifyHttpSoupBridgeRequestPrivate" disguised="1"/>
396
+ <class name="Server" c:type="GjsifyHttpSoupBridgeServer" c:symbol-prefix="server" glib:type-name="GjsifyHttpSoupBridgeServer" glib:get-type="gjsify_http_soup_bridge_server_get_type" glib:type-struct="ServerClass" parent="GObject.Object">
397
+ <field name="parent_instance" readable="0" private="1">
398
+ <type name="GObject.Object" c:type="GObject"/>
399
+ </field>
400
+ <field name="priv" readable="0" private="1">
401
+ <type name="ServerPrivate" c:type="GjsifyHttpSoupBridgeServerPrivate*"/>
402
+ </field>
403
+ <method name="listen" c:identifier="gjsify_http_soup_bridge_server_listen" throws="1">
404
+ <return-value transfer-ownership="full">
405
+ <type name="none" c:type="void"/>
406
+ </return-value>
407
+ <parameters>
408
+ <instance-parameter name="self" transfer-ownership="none">
409
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
410
+ </instance-parameter>
411
+ <parameter name="port_arg" transfer-ownership="none">
412
+ <type name="guint" c:type="guint"/>
413
+ </parameter>
414
+ <parameter name="hostname" transfer-ownership="none">
415
+ <type name="utf8" c:type="const gchar*"/>
416
+ </parameter>
417
+ </parameters>
418
+ </method>
419
+ <method name="close" c:identifier="gjsify_http_soup_bridge_server_close">
420
+ <return-value transfer-ownership="full">
421
+ <type name="none" c:type="void"/>
422
+ </return-value>
423
+ <parameters>
424
+ <instance-parameter name="self" transfer-ownership="none">
425
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
426
+ </instance-parameter>
427
+ </parameters>
428
+ </method>
429
+ <constructor name="new" c:identifier="gjsify_http_soup_bridge_server_new">
430
+ <return-value transfer-ownership="full">
431
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
432
+ </return-value>
433
+ </constructor>
434
+ <property name="port" writable="1">
435
+ <type name="guint" c:type="guint"/>
436
+ </property>
437
+ <method name="get_port" c:identifier="gjsify_http_soup_bridge_server_get_port">
438
+ <return-value transfer-ownership="none">
439
+ <type name="guint" c:type="guint"/>
440
+ </return-value>
441
+ <parameters>
442
+ <instance-parameter name="self" transfer-ownership="none">
443
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
444
+ </instance-parameter>
445
+ </parameters>
446
+ </method>
447
+ <property name="address" writable="1">
448
+ <type name="utf8" c:type="gchar*"/>
449
+ </property>
450
+ <method name="get_address" c:identifier="gjsify_http_soup_bridge_server_get_address">
451
+ <return-value transfer-ownership="none">
452
+ <type name="utf8" c:type="const gchar*"/>
453
+ </return-value>
454
+ <parameters>
455
+ <instance-parameter name="self" transfer-ownership="none">
456
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
457
+ </instance-parameter>
458
+ </parameters>
459
+ </method>
460
+ <property name="listening" writable="1">
461
+ <type name="gboolean" c:type="gboolean"/>
462
+ </property>
463
+ <method name="get_listening" c:identifier="gjsify_http_soup_bridge_server_get_listening">
464
+ <return-value transfer-ownership="none">
465
+ <type name="gboolean" c:type="gboolean"/>
466
+ </return-value>
467
+ <parameters>
468
+ <instance-parameter name="self" transfer-ownership="none">
469
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
470
+ </instance-parameter>
471
+ </parameters>
472
+ </method>
473
+ <property name="soup-server" writable="1">
474
+ <type name="Soup.Server" c:type="SoupServer*"/>
475
+ </property>
476
+ <method name="get_soup_server" c:identifier="gjsify_http_soup_bridge_server_get_soup_server">
477
+ <return-value transfer-ownership="none">
478
+ <type name="Soup.Server" c:type="SoupServer*"/>
479
+ </return-value>
480
+ <parameters>
481
+ <instance-parameter name="self" transfer-ownership="none">
482
+ <type name="GjsifyHttpSoupBridge.Server" c:type="GjsifyHttpSoupBridgeServer*"/>
483
+ </instance-parameter>
484
+ </parameters>
485
+ </method>
486
+ <glib:signal name="request-received">
487
+ <return-value transfer-ownership="full">
488
+ <type name="none" c:type="void"/>
489
+ </return-value>
490
+ <parameters>
491
+ <parameter name="req" transfer-ownership="none">
492
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
493
+ </parameter>
494
+ <parameter name="res" transfer-ownership="none">
495
+ <type name="GjsifyHttpSoupBridge.Response" c:type="GjsifyHttpSoupBridgeResponse*"/>
496
+ </parameter>
497
+ </parameters>
498
+ </glib:signal>
499
+ <glib:signal name="upgrade">
500
+ <return-value transfer-ownership="full">
501
+ <type name="none" c:type="void"/>
502
+ </return-value>
503
+ <parameters>
504
+ <parameter name="req" transfer-ownership="none">
505
+ <type name="GjsifyHttpSoupBridge.Request" c:type="GjsifyHttpSoupBridgeRequest*"/>
506
+ </parameter>
507
+ <parameter name="iostream" transfer-ownership="none">
508
+ <type name="Gio.IOStream" c:type="GIOStream*"/>
509
+ </parameter>
510
+ <parameter name="head" transfer-ownership="none">
511
+ <type name="GLib.Bytes" c:type="GBytes*"/>
512
+ </parameter>
513
+ </parameters>
514
+ </glib:signal>
515
+ <glib:signal name="error-occurred">
516
+ <return-value transfer-ownership="full">
517
+ <type name="none" c:type="void"/>
518
+ </return-value>
519
+ <parameters>
520
+ <parameter name="message" transfer-ownership="none">
521
+ <type name="utf8" c:type="const gchar*"/>
522
+ </parameter>
523
+ </parameters>
524
+ </glib:signal>
525
+ </class>
526
+ <record name="ServerClass" c:type="GjsifyHttpSoupBridgeServerClass" glib:is-gtype-struct-for="Server">
527
+ <field name="parent_class" readable="0" private="1">
528
+ <type name="GObject.ObjectClass" c:type="GObjectClass"/>
529
+ </field>
530
+ </record>
531
+ <record name="ServerPrivate" c:type="GjsifyHttpSoupBridgeServerPrivate" disguised="1"/>
532
+ </namespace>
533
+ </repository>
index 03d367a..5610161 100644
Binary file
index 3864ebf..815a3ec 100755
Binary file
File without changes