winrt-Windows.Web.Http 2.2.0__cp313-cp313-win32.whl

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.
@@ -0,0 +1,495 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.networking.sockets as windows_networking_sockets
15
+ import winrt.windows.security.cryptography.certificates as windows_security_cryptography_certificates
16
+ import winrt.windows.storage.streams as windows_storage_streams
17
+ import winrt.windows.web.http.filters as windows_web_http_filters
18
+ import winrt.windows.web.http.headers as windows_web_http_headers
19
+
20
+ from winrt.windows.web.http import HttpCompletionOption, HttpProgressStage, HttpResponseMessageSource, HttpStatusCode, HttpVersion
21
+
22
+ Self = typing.TypeVar('Self')
23
+
24
+ @typing.final
25
+ class HttpProgress:
26
+ stage: HttpProgressStage
27
+ bytes_sent: winrt.system.UInt64
28
+ total_bytes_to_send: typing.Optional[winrt.system.UInt64]
29
+ bytes_received: winrt.system.UInt64
30
+ total_bytes_to_receive: typing.Optional[winrt.system.UInt64]
31
+ retries: winrt.system.UInt32
32
+ def __init__(self, stage: HttpProgressStage, bytes_sent: winrt.system.UInt64, total_bytes_to_send: typing.Optional[winrt.system.UInt64], bytes_received: winrt.system.UInt64, total_bytes_to_receive: typing.Optional[winrt.system.UInt64], retries: winrt.system.UInt32) -> None: ...
33
+
34
+ @typing.final
35
+ class HttpBufferContent(winrt.system.Object):
36
+ def __enter__(self: Self) -> Self: ...
37
+ def __exit__(self, *args) -> None: ...
38
+ def __str__(self) -> str: ...
39
+ @staticmethod
40
+ def _from(obj: winrt.system.Object, /) -> HttpBufferContent: ...
41
+ @typing.overload
42
+ def __new__(cls: typing.Type[HttpBufferContent], content: typing.Optional[windows_storage_streams.IBuffer]) -> HttpBufferContent: ...
43
+ @typing.overload
44
+ def __new__(cls: typing.Type[HttpBufferContent], content: typing.Optional[windows_storage_streams.IBuffer], offset: winrt.system.UInt32, count: winrt.system.UInt32) -> HttpBufferContent: ...
45
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
46
+ def close(self) -> None: ...
47
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
48
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
49
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
50
+ def to_string(self) -> str: ...
51
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
52
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
53
+ @_property
54
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
55
+
56
+ @typing.final
57
+ class HttpClient(winrt.system.Object):
58
+ def __enter__(self: Self) -> Self: ...
59
+ def __exit__(self, *args) -> None: ...
60
+ def __str__(self) -> str: ...
61
+ @staticmethod
62
+ def _from(obj: winrt.system.Object, /) -> HttpClient: ...
63
+ @typing.overload
64
+ def __new__(cls: typing.Type[HttpClient], filter: typing.Optional[windows_web_http_filters.IHttpFilter]) -> HttpClient: ...
65
+ @typing.overload
66
+ def __new__(cls: typing.Type[HttpClient]) -> HttpClient: ...
67
+ def close(self) -> None: ...
68
+ def delete_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
69
+ @typing.overload
70
+ def get_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
71
+ @typing.overload
72
+ def get_async(self, uri: typing.Optional[windows_foundation.Uri], completion_option: HttpCompletionOption, /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
73
+ def get_buffer_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, HttpProgress]: ...
74
+ def get_input_stream_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, HttpProgress]: ...
75
+ def get_string_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[str, HttpProgress]: ...
76
+ def post_async(self, uri: typing.Optional[windows_foundation.Uri], content: typing.Optional[IHttpContent], /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
77
+ def put_async(self, uri: typing.Optional[windows_foundation.Uri], content: typing.Optional[IHttpContent], /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
78
+ @typing.overload
79
+ def send_request_async(self, request: typing.Optional[HttpRequestMessage], /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
80
+ @typing.overload
81
+ def send_request_async(self, request: typing.Optional[HttpRequestMessage], completion_option: HttpCompletionOption, /) -> windows_foundation.IAsyncOperationWithProgress[HttpResponseMessage, HttpProgress]: ...
82
+ def to_string(self) -> str: ...
83
+ def try_delete_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
84
+ @typing.overload
85
+ def try_get_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
86
+ @typing.overload
87
+ def try_get_async(self, uri: typing.Optional[windows_foundation.Uri], completion_option: HttpCompletionOption, /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
88
+ def try_get_buffer_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpGetBufferResult, HttpProgress]: ...
89
+ def try_get_input_stream_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpGetInputStreamResult, HttpProgress]: ...
90
+ def try_get_string_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperationWithProgress[HttpGetStringResult, HttpProgress]: ...
91
+ def try_post_async(self, uri: typing.Optional[windows_foundation.Uri], content: typing.Optional[IHttpContent], /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
92
+ def try_put_async(self, uri: typing.Optional[windows_foundation.Uri], content: typing.Optional[IHttpContent], /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
93
+ @typing.overload
94
+ def try_send_request_async(self, request: typing.Optional[HttpRequestMessage], /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
95
+ @typing.overload
96
+ def try_send_request_async(self, request: typing.Optional[HttpRequestMessage], completion_option: HttpCompletionOption, /) -> windows_foundation.IAsyncOperationWithProgress[HttpRequestResult, HttpProgress]: ...
97
+ @_property
98
+ def default_request_headers(self) -> typing.Optional[windows_web_http_headers.HttpRequestHeaderCollection]: ...
99
+ @_property
100
+ def default_privacy_annotation(self) -> str: ...
101
+ @default_privacy_annotation.setter
102
+ def default_privacy_annotation(self, value: str) -> None: ...
103
+
104
+ @typing.final
105
+ class HttpCookie(winrt.system.Object):
106
+ def __str__(self) -> str: ...
107
+ @staticmethod
108
+ def _from(obj: winrt.system.Object, /) -> HttpCookie: ...
109
+ def __new__(cls: typing.Type[HttpCookie], name: str, domain: str, path: str) -> HttpCookie: ...
110
+ def to_string(self) -> str: ...
111
+ @_property
112
+ def value(self) -> str: ...
113
+ @value.setter
114
+ def value(self, value: str) -> None: ...
115
+ @_property
116
+ def secure(self) -> bool: ...
117
+ @secure.setter
118
+ def secure(self, value: bool) -> None: ...
119
+ @_property
120
+ def http_only(self) -> bool: ...
121
+ @http_only.setter
122
+ def http_only(self, value: bool) -> None: ...
123
+ @_property
124
+ def expires(self) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
125
+ @expires.setter
126
+ def expires(self, value: typing.Optional[typing.Optional[datetime.datetime]]) -> None: ...
127
+ @_property
128
+ def domain(self) -> str: ...
129
+ @_property
130
+ def name(self) -> str: ...
131
+ @_property
132
+ def path(self) -> str: ...
133
+
134
+ @typing.final
135
+ class HttpCookieCollection(winrt.system.Object, winrt._winrt.Sequence[HttpCookie]):
136
+ def __len__(self) -> int: ...
137
+ def __iter__(self) -> windows_foundation_collections.IIterator[HttpCookie]: ...
138
+ @typing.overload
139
+ def __getitem__(self, index: typing.SupportsIndex) -> HttpCookie: ...
140
+ @typing.overload
141
+ def __getitem__(self, index: slice) -> winrt.system.Array[HttpCookie]: ...
142
+ @staticmethod
143
+ def _from(obj: winrt.system.Object, /) -> HttpCookieCollection: ...
144
+ def first(self) -> typing.Optional[windows_foundation_collections.IIterator[HttpCookie]]: ...
145
+ def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[HttpCookie]: ...
146
+ def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[HttpCookie], /) -> winrt.system.UInt32: ...
147
+ def index_of(self, value: typing.Optional[HttpCookie], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
148
+ @_property
149
+ def size(self) -> winrt.system.UInt32: ...
150
+
151
+ @typing.final
152
+ class HttpCookieManager(winrt.system.Object):
153
+ @staticmethod
154
+ def _from(obj: winrt.system.Object, /) -> HttpCookieManager: ...
155
+ def delete_cookie(self, cookie: typing.Optional[HttpCookie], /) -> None: ...
156
+ def get_cookies(self, uri: typing.Optional[windows_foundation.Uri], /) -> typing.Optional[HttpCookieCollection]: ...
157
+ @typing.overload
158
+ def set_cookie(self, cookie: typing.Optional[HttpCookie], /) -> bool: ...
159
+ @typing.overload
160
+ def set_cookie(self, cookie: typing.Optional[HttpCookie], third_party: bool, /) -> bool: ...
161
+
162
+ @typing.final
163
+ class HttpFormUrlEncodedContent(winrt.system.Object):
164
+ def __enter__(self: Self) -> Self: ...
165
+ def __exit__(self, *args) -> None: ...
166
+ def __str__(self) -> str: ...
167
+ @staticmethod
168
+ def _from(obj: winrt.system.Object, /) -> HttpFormUrlEncodedContent: ...
169
+ def __new__(cls: typing.Type[HttpFormUrlEncodedContent], content: typing.Iterable[windows_foundation_collections.IKeyValuePair[str, str]]) -> HttpFormUrlEncodedContent: ...
170
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
171
+ def close(self) -> None: ...
172
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
173
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
174
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
175
+ def to_string(self) -> str: ...
176
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
177
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
178
+ @_property
179
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
180
+
181
+ @typing.final
182
+ class HttpGetBufferResult(winrt.system.Object):
183
+ def __enter__(self: Self) -> Self: ...
184
+ def __exit__(self, *args) -> None: ...
185
+ def __str__(self) -> str: ...
186
+ @staticmethod
187
+ def _from(obj: winrt.system.Object, /) -> HttpGetBufferResult: ...
188
+ def close(self) -> None: ...
189
+ def to_string(self) -> str: ...
190
+ @_property
191
+ def extended_error(self) -> windows_foundation.HResult: ...
192
+ @_property
193
+ def request_message(self) -> typing.Optional[HttpRequestMessage]: ...
194
+ @_property
195
+ def response_message(self) -> typing.Optional[HttpResponseMessage]: ...
196
+ @_property
197
+ def succeeded(self) -> bool: ...
198
+ @_property
199
+ def value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
200
+
201
+ @typing.final
202
+ class HttpGetInputStreamResult(winrt.system.Object):
203
+ def __enter__(self: Self) -> Self: ...
204
+ def __exit__(self, *args) -> None: ...
205
+ def __str__(self) -> str: ...
206
+ @staticmethod
207
+ def _from(obj: winrt.system.Object, /) -> HttpGetInputStreamResult: ...
208
+ def close(self) -> None: ...
209
+ def to_string(self) -> str: ...
210
+ @_property
211
+ def extended_error(self) -> windows_foundation.HResult: ...
212
+ @_property
213
+ def request_message(self) -> typing.Optional[HttpRequestMessage]: ...
214
+ @_property
215
+ def response_message(self) -> typing.Optional[HttpResponseMessage]: ...
216
+ @_property
217
+ def succeeded(self) -> bool: ...
218
+ @_property
219
+ def value(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
220
+
221
+ @typing.final
222
+ class HttpGetStringResult(winrt.system.Object):
223
+ def __enter__(self: Self) -> Self: ...
224
+ def __exit__(self, *args) -> None: ...
225
+ def __str__(self) -> str: ...
226
+ @staticmethod
227
+ def _from(obj: winrt.system.Object, /) -> HttpGetStringResult: ...
228
+ def close(self) -> None: ...
229
+ def to_string(self) -> str: ...
230
+ @_property
231
+ def extended_error(self) -> windows_foundation.HResult: ...
232
+ @_property
233
+ def request_message(self) -> typing.Optional[HttpRequestMessage]: ...
234
+ @_property
235
+ def response_message(self) -> typing.Optional[HttpResponseMessage]: ...
236
+ @_property
237
+ def succeeded(self) -> bool: ...
238
+ @_property
239
+ def value(self) -> str: ...
240
+
241
+ @typing.final
242
+ class HttpMethod_Static(type):
243
+ @_property
244
+ def delete(cls) -> typing.Optional[HttpMethod]: ...
245
+ @_property
246
+ def get(cls) -> typing.Optional[HttpMethod]: ...
247
+ @_property
248
+ def head(cls) -> typing.Optional[HttpMethod]: ...
249
+ @_property
250
+ def options(cls) -> typing.Optional[HttpMethod]: ...
251
+ @_property
252
+ def patch(cls) -> typing.Optional[HttpMethod]: ...
253
+ @_property
254
+ def post(cls) -> typing.Optional[HttpMethod]: ...
255
+ @_property
256
+ def put(cls) -> typing.Optional[HttpMethod]: ...
257
+
258
+ @typing.final
259
+ class HttpMethod(winrt.system.Object, metaclass=HttpMethod_Static):
260
+ def __str__(self) -> str: ...
261
+ @staticmethod
262
+ def _from(obj: winrt.system.Object, /) -> HttpMethod: ...
263
+ def __new__(cls: typing.Type[HttpMethod], method: str) -> HttpMethod: ...
264
+ def to_string(self) -> str: ...
265
+ @_property
266
+ def method(self) -> str: ...
267
+
268
+ @typing.final
269
+ class HttpMultipartContent(winrt.system.Object):
270
+ def __enter__(self: Self) -> Self: ...
271
+ def __exit__(self, *args) -> None: ...
272
+ def __str__(self) -> str: ...
273
+ def __iter__(self) -> windows_foundation_collections.IIterator[IHttpContent]: ...
274
+ @staticmethod
275
+ def _from(obj: winrt.system.Object, /) -> HttpMultipartContent: ...
276
+ @typing.overload
277
+ def __new__(cls: typing.Type[HttpMultipartContent], subtype: str) -> HttpMultipartContent: ...
278
+ @typing.overload
279
+ def __new__(cls: typing.Type[HttpMultipartContent], subtype: str, boundary: str) -> HttpMultipartContent: ...
280
+ @typing.overload
281
+ def __new__(cls: typing.Type[HttpMultipartContent]) -> HttpMultipartContent: ...
282
+ def add(self, content: typing.Optional[IHttpContent], /) -> None: ...
283
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
284
+ def close(self) -> None: ...
285
+ def first(self) -> typing.Optional[windows_foundation_collections.IIterator[IHttpContent]]: ...
286
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
287
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
288
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
289
+ def to_string(self) -> str: ...
290
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
291
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
292
+ @_property
293
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
294
+
295
+ @typing.final
296
+ class HttpMultipartFormDataContent(winrt.system.Object):
297
+ def __enter__(self: Self) -> Self: ...
298
+ def __exit__(self, *args) -> None: ...
299
+ def __str__(self) -> str: ...
300
+ def __iter__(self) -> windows_foundation_collections.IIterator[IHttpContent]: ...
301
+ @staticmethod
302
+ def _from(obj: winrt.system.Object, /) -> HttpMultipartFormDataContent: ...
303
+ @typing.overload
304
+ def __new__(cls: typing.Type[HttpMultipartFormDataContent], boundary: str) -> HttpMultipartFormDataContent: ...
305
+ @typing.overload
306
+ def __new__(cls: typing.Type[HttpMultipartFormDataContent]) -> HttpMultipartFormDataContent: ...
307
+ @typing.overload
308
+ def add(self, content: typing.Optional[IHttpContent], /) -> None: ...
309
+ @typing.overload
310
+ def add(self, content: typing.Optional[IHttpContent], name: str, /) -> None: ...
311
+ @typing.overload
312
+ def add(self, content: typing.Optional[IHttpContent], name: str, file_name: str, /) -> None: ...
313
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
314
+ def close(self) -> None: ...
315
+ def first(self) -> typing.Optional[windows_foundation_collections.IIterator[IHttpContent]]: ...
316
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
317
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
318
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
319
+ def to_string(self) -> str: ...
320
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
321
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
322
+ @_property
323
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
324
+
325
+ @typing.final
326
+ class HttpRequestMessage(winrt.system.Object):
327
+ def __enter__(self: Self) -> Self: ...
328
+ def __exit__(self, *args) -> None: ...
329
+ def __str__(self) -> str: ...
330
+ @staticmethod
331
+ def _from(obj: winrt.system.Object, /) -> HttpRequestMessage: ...
332
+ @typing.overload
333
+ def __new__(cls: typing.Type[HttpRequestMessage], method: typing.Optional[HttpMethod], uri: typing.Optional[windows_foundation.Uri]) -> HttpRequestMessage: ...
334
+ @typing.overload
335
+ def __new__(cls: typing.Type[HttpRequestMessage]) -> HttpRequestMessage: ...
336
+ def close(self) -> None: ...
337
+ def to_string(self) -> str: ...
338
+ @_property
339
+ def request_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
340
+ @request_uri.setter
341
+ def request_uri(self, value: typing.Optional[windows_foundation.Uri]) -> None: ...
342
+ @_property
343
+ def method(self) -> typing.Optional[HttpMethod]: ...
344
+ @method.setter
345
+ def method(self, value: typing.Optional[HttpMethod]) -> None: ...
346
+ @_property
347
+ def content(self) -> typing.Optional[IHttpContent]: ...
348
+ @content.setter
349
+ def content(self, value: typing.Optional[IHttpContent]) -> None: ...
350
+ @_property
351
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpRequestHeaderCollection]: ...
352
+ @_property
353
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMap[str, winrt.system.Object]]: ...
354
+ @_property
355
+ def transport_information(self) -> typing.Optional[HttpTransportInformation]: ...
356
+ @_property
357
+ def privacy_annotation(self) -> str: ...
358
+ @privacy_annotation.setter
359
+ def privacy_annotation(self, value: str) -> None: ...
360
+
361
+ @typing.final
362
+ class HttpRequestResult(winrt.system.Object):
363
+ def __enter__(self: Self) -> Self: ...
364
+ def __exit__(self, *args) -> None: ...
365
+ def __str__(self) -> str: ...
366
+ @staticmethod
367
+ def _from(obj: winrt.system.Object, /) -> HttpRequestResult: ...
368
+ def close(self) -> None: ...
369
+ def to_string(self) -> str: ...
370
+ @_property
371
+ def extended_error(self) -> windows_foundation.HResult: ...
372
+ @_property
373
+ def request_message(self) -> typing.Optional[HttpRequestMessage]: ...
374
+ @_property
375
+ def response_message(self) -> typing.Optional[HttpResponseMessage]: ...
376
+ @_property
377
+ def succeeded(self) -> bool: ...
378
+
379
+ @typing.final
380
+ class HttpResponseMessage(winrt.system.Object):
381
+ def __enter__(self: Self) -> Self: ...
382
+ def __exit__(self, *args) -> None: ...
383
+ def __str__(self) -> str: ...
384
+ @staticmethod
385
+ def _from(obj: winrt.system.Object, /) -> HttpResponseMessage: ...
386
+ @typing.overload
387
+ def __new__(cls: typing.Type[HttpResponseMessage], status_code: HttpStatusCode) -> HttpResponseMessage: ...
388
+ @typing.overload
389
+ def __new__(cls: typing.Type[HttpResponseMessage]) -> HttpResponseMessage: ...
390
+ def close(self) -> None: ...
391
+ def ensure_success_status_code(self) -> typing.Optional[HttpResponseMessage]: ...
392
+ def to_string(self) -> str: ...
393
+ @_property
394
+ def version(self) -> HttpVersion: ...
395
+ @version.setter
396
+ def version(self, value: HttpVersion) -> None: ...
397
+ @_property
398
+ def status_code(self) -> HttpStatusCode: ...
399
+ @status_code.setter
400
+ def status_code(self, value: HttpStatusCode) -> None: ...
401
+ @_property
402
+ def source(self) -> HttpResponseMessageSource: ...
403
+ @source.setter
404
+ def source(self, value: HttpResponseMessageSource) -> None: ...
405
+ @_property
406
+ def request_message(self) -> typing.Optional[HttpRequestMessage]: ...
407
+ @request_message.setter
408
+ def request_message(self, value: typing.Optional[HttpRequestMessage]) -> None: ...
409
+ @_property
410
+ def reason_phrase(self) -> str: ...
411
+ @reason_phrase.setter
412
+ def reason_phrase(self, value: str) -> None: ...
413
+ @_property
414
+ def content(self) -> typing.Optional[IHttpContent]: ...
415
+ @content.setter
416
+ def content(self, value: typing.Optional[IHttpContent]) -> None: ...
417
+ @_property
418
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpResponseHeaderCollection]: ...
419
+ @_property
420
+ def is_success_status_code(self) -> bool: ...
421
+
422
+ @typing.final
423
+ class HttpStreamContent(winrt.system.Object):
424
+ def __enter__(self: Self) -> Self: ...
425
+ def __exit__(self, *args) -> None: ...
426
+ def __str__(self) -> str: ...
427
+ @staticmethod
428
+ def _from(obj: winrt.system.Object, /) -> HttpStreamContent: ...
429
+ def __new__(cls: typing.Type[HttpStreamContent], content: typing.Optional[windows_storage_streams.IInputStream]) -> HttpStreamContent: ...
430
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
431
+ def close(self) -> None: ...
432
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
433
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
434
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
435
+ def to_string(self) -> str: ...
436
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
437
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
438
+ @_property
439
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
440
+
441
+ @typing.final
442
+ class HttpStringContent(winrt.system.Object):
443
+ def __enter__(self: Self) -> Self: ...
444
+ def __exit__(self, *args) -> None: ...
445
+ def __str__(self) -> str: ...
446
+ @staticmethod
447
+ def _from(obj: winrt.system.Object, /) -> HttpStringContent: ...
448
+ @typing.overload
449
+ def __new__(cls: typing.Type[HttpStringContent], content: str) -> HttpStringContent: ...
450
+ @typing.overload
451
+ def __new__(cls: typing.Type[HttpStringContent], content: str, encoding: windows_storage_streams.UnicodeEncoding) -> HttpStringContent: ...
452
+ @typing.overload
453
+ def __new__(cls: typing.Type[HttpStringContent], content: str, encoding: windows_storage_streams.UnicodeEncoding, media_type: str) -> HttpStringContent: ...
454
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
455
+ def close(self) -> None: ...
456
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
457
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
458
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
459
+ def to_string(self) -> str: ...
460
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
461
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
462
+ @_property
463
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
464
+
465
+ @typing.final
466
+ class HttpTransportInformation(winrt.system.Object):
467
+ def __str__(self) -> str: ...
468
+ @staticmethod
469
+ def _from(obj: winrt.system.Object, /) -> HttpTransportInformation: ...
470
+ def to_string(self) -> str: ...
471
+ @_property
472
+ def server_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
473
+ @_property
474
+ def server_certificate_error_severity(self) -> windows_networking_sockets.SocketSslErrorSeverity: ...
475
+ @_property
476
+ def server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.ChainValidationResult]]: ...
477
+ @_property
478
+ def server_intermediate_certificates(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.Certificate]]: ...
479
+
480
+ @typing.final
481
+ class IHttpContent(winrt.system.Object):
482
+ def __enter__(self: Self) -> Self: ...
483
+ def __exit__(self, *args) -> None: ...
484
+ @staticmethod
485
+ def _from(obj: winrt.system.Object, /) -> IHttpContent: ...
486
+ def buffer_all_async(self) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
487
+ def close(self) -> None: ...
488
+ def read_as_buffer_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IBuffer, winrt.system.UInt64]: ...
489
+ def read_as_input_stream_async(self) -> windows_foundation.IAsyncOperationWithProgress[windows_storage_streams.IInputStream, winrt.system.UInt64]: ...
490
+ def read_as_string_async(self) -> windows_foundation.IAsyncOperationWithProgress[str, winrt.system.UInt64]: ...
491
+ def try_compute_length(self) -> typing.Tuple[bool, winrt.system.UInt64]: ...
492
+ def write_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IOutputStream], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt64, winrt.system.UInt64]: ...
493
+ @_property
494
+ def headers(self) -> typing.Optional[windows_web_http_headers.HttpContentHeaderCollection]: ...
495
+
@@ -0,0 +1,143 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_web_http
7
+
8
+ __all__ = [
9
+ "HttpCompletionOption",
10
+ "HttpProgressStage",
11
+ "HttpResponseMessageSource",
12
+ "HttpStatusCode",
13
+ "HttpVersion",
14
+ "HttpProgress",
15
+ "HttpBufferContent",
16
+ "HttpClient",
17
+ "HttpCookie",
18
+ "HttpCookieCollection",
19
+ "HttpCookieManager",
20
+ "HttpFormUrlEncodedContent",
21
+ "HttpGetBufferResult",
22
+ "HttpGetInputStreamResult",
23
+ "HttpGetStringResult",
24
+ "HttpMethod",
25
+ "HttpMultipartContent",
26
+ "HttpMultipartFormDataContent",
27
+ "HttpRequestMessage",
28
+ "HttpRequestResult",
29
+ "HttpResponseMessage",
30
+ "HttpStreamContent",
31
+ "HttpStringContent",
32
+ "HttpTransportInformation",
33
+ "IHttpContent",
34
+ ]
35
+
36
+ class HttpCompletionOption(enum.IntEnum):
37
+ RESPONSE_CONTENT_READ = 0
38
+ RESPONSE_HEADERS_READ = 1
39
+
40
+ class HttpProgressStage(enum.IntEnum):
41
+ NONE = 0
42
+ DETECTING_PROXY = 10
43
+ RESOLVING_NAME = 20
44
+ CONNECTING_TO_SERVER = 30
45
+ NEGOTIATING_SSL = 40
46
+ SENDING_HEADERS = 50
47
+ SENDING_CONTENT = 60
48
+ WAITING_FOR_RESPONSE = 70
49
+ RECEIVING_HEADERS = 80
50
+ RECEIVING_CONTENT = 90
51
+
52
+ class HttpResponseMessageSource(enum.IntEnum):
53
+ NONE = 0
54
+ CACHE = 1
55
+ NETWORK = 2
56
+
57
+ class HttpStatusCode(enum.IntEnum):
58
+ NONE = 0
59
+ CONTINUE = 100
60
+ SWITCHING_PROTOCOLS = 101
61
+ PROCESSING = 102
62
+ OK = 200
63
+ CREATED = 201
64
+ ACCEPTED = 202
65
+ NON_AUTHORITATIVE_INFORMATION = 203
66
+ NO_CONTENT = 204
67
+ RESET_CONTENT = 205
68
+ PARTIAL_CONTENT = 206
69
+ MULTI_STATUS = 207
70
+ ALREADY_REPORTED = 208
71
+ I_M_USED = 226
72
+ MULTIPLE_CHOICES = 300
73
+ MOVED_PERMANENTLY = 301
74
+ FOUND = 302
75
+ SEE_OTHER = 303
76
+ NOT_MODIFIED = 304
77
+ USE_PROXY = 305
78
+ TEMPORARY_REDIRECT = 307
79
+ PERMANENT_REDIRECT = 308
80
+ BAD_REQUEST = 400
81
+ UNAUTHORIZED = 401
82
+ PAYMENT_REQUIRED = 402
83
+ FORBIDDEN = 403
84
+ NOT_FOUND = 404
85
+ METHOD_NOT_ALLOWED = 405
86
+ NOT_ACCEPTABLE = 406
87
+ PROXY_AUTHENTICATION_REQUIRED = 407
88
+ REQUEST_TIMEOUT = 408
89
+ CONFLICT = 409
90
+ GONE = 410
91
+ LENGTH_REQUIRED = 411
92
+ PRECONDITION_FAILED = 412
93
+ REQUEST_ENTITY_TOO_LARGE = 413
94
+ REQUEST_URI_TOO_LONG = 414
95
+ UNSUPPORTED_MEDIA_TYPE = 415
96
+ REQUESTED_RANGE_NOT_SATISFIABLE = 416
97
+ EXPECTATION_FAILED = 417
98
+ UNPROCESSABLE_ENTITY = 422
99
+ LOCKED = 423
100
+ FAILED_DEPENDENCY = 424
101
+ UPGRADE_REQUIRED = 426
102
+ PRECONDITION_REQUIRED = 428
103
+ TOO_MANY_REQUESTS = 429
104
+ REQUEST_HEADER_FIELDS_TOO_LARGE = 431
105
+ INTERNAL_SERVER_ERROR = 500
106
+ NOT_IMPLEMENTED = 501
107
+ BAD_GATEWAY = 502
108
+ SERVICE_UNAVAILABLE = 503
109
+ GATEWAY_TIMEOUT = 504
110
+ HTTP_VERSION_NOT_SUPPORTED = 505
111
+ VARIANT_ALSO_NEGOTIATES = 506
112
+ INSUFFICIENT_STORAGE = 507
113
+ LOOP_DETECTED = 508
114
+ NOT_EXTENDED = 510
115
+ NETWORK_AUTHENTICATION_REQUIRED = 511
116
+
117
+ class HttpVersion(enum.IntEnum):
118
+ NONE = 0
119
+ HTTP10 = 1
120
+ HTTP11 = 2
121
+ HTTP20 = 3
122
+
123
+ HttpProgress = _winrt_windows_web_http.HttpProgress
124
+ HttpBufferContent = _winrt_windows_web_http.HttpBufferContent
125
+ HttpClient = _winrt_windows_web_http.HttpClient
126
+ HttpCookie = _winrt_windows_web_http.HttpCookie
127
+ HttpCookieCollection = _winrt_windows_web_http.HttpCookieCollection
128
+ winrt.system._mixin_sequence(HttpCookieCollection)
129
+ HttpCookieManager = _winrt_windows_web_http.HttpCookieManager
130
+ HttpFormUrlEncodedContent = _winrt_windows_web_http.HttpFormUrlEncodedContent
131
+ HttpGetBufferResult = _winrt_windows_web_http.HttpGetBufferResult
132
+ HttpGetInputStreamResult = _winrt_windows_web_http.HttpGetInputStreamResult
133
+ HttpGetStringResult = _winrt_windows_web_http.HttpGetStringResult
134
+ HttpMethod = _winrt_windows_web_http.HttpMethod
135
+ HttpMultipartContent = _winrt_windows_web_http.HttpMultipartContent
136
+ HttpMultipartFormDataContent = _winrt_windows_web_http.HttpMultipartFormDataContent
137
+ HttpRequestMessage = _winrt_windows_web_http.HttpRequestMessage
138
+ HttpRequestResult = _winrt_windows_web_http.HttpRequestResult
139
+ HttpResponseMessage = _winrt_windows_web_http.HttpResponseMessage
140
+ HttpStreamContent = _winrt_windows_web_http.HttpStreamContent
141
+ HttpStringContent = _winrt_windows_web_http.HttpStringContent
142
+ HttpTransportInformation = _winrt_windows_web_http.HttpTransportInformation
143
+ IHttpContent = _winrt_windows_web_http.IHttpContent
File without changes
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Web.Http
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Networking.Sockets[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all] ==2.2.0 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
22
+ Requires-Dist: winrt-Windows.Web.Http.Filters[all] ==2.2.0 ; extra == 'all'
23
+ Requires-Dist: winrt-Windows.Web.Http.Headers[all] ==2.2.0 ; extra == 'all'
24
+
25
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
26
+
27
+ # winrt-Windows.Web.Http
28
+
29
+ Windows Runtime (WinRT) APIs for for the `Windows.Web.Http` namespace.
30
+
31
+ This package provides the `winrt.windows.web.http` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_web_http.cp313-win32.pyd,sha256=ra0DqQY-jgFtpeQeGcuiL-YEkSYZ5upnfCLdEK7FMSU,427008
2
+ winrt/_winrt_windows_web_http.pyi,sha256=slFL3eKjrkWnjsopeWnxx7Kr165jzBczecEuFUy7CxI,28327
3
+ winrt/windows/web/http/__init__.py,sha256=54ubZqL2FCM0-MqNvbVaHu7eXZRPpil6HAqnjUJyYls,4278
4
+ winrt/windows/web/http/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Web.Http-2.2.0.dist-info/METADATA,sha256=KD-5RN3qHESuQON-GAE2_Bw7QqJBXBaCf6uRdWb6ELA,1502
6
+ winrt_Windows.Web.Http-2.2.0.dist-info/WHEEL,sha256=rHSPOKLHVf857fDiba9Pzuf1iCvh9pcRQ5-VWQYz3ms,97
7
+ winrt_Windows.Web.Http-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Web.Http-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win32
5
+