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