]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Web/Http/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Web / Http / mod.rs
CommitLineData
5e7ed085
FG
1#[cfg(feature = "Web_Http_Diagnostics")]
2pub mod Diagnostics;
3#[cfg(feature = "Web_Http_Filters")]
4pub mod Filters;
5#[cfg(feature = "Web_Http_Headers")]
6pub mod Headers;
7pub type HttpBufferContent = *mut ::core::ffi::c_void;
8pub type HttpClient = *mut ::core::ffi::c_void;
04454e1e 9#[doc = "*Required features: `\"Web_Http\"`*"]
5e7ed085
FG
10#[repr(transparent)]
11pub struct HttpCompletionOption(pub i32);
12impl HttpCompletionOption {
13 pub const ResponseContentRead: Self = Self(0i32);
14 pub const ResponseHeadersRead: Self = Self(1i32);
15}
16impl ::core::marker::Copy for HttpCompletionOption {}
17impl ::core::clone::Clone for HttpCompletionOption {
18 fn clone(&self) -> Self {
19 *self
20 }
21}
22pub type HttpCookie = *mut ::core::ffi::c_void;
23pub type HttpCookieCollection = *mut ::core::ffi::c_void;
24pub type HttpCookieManager = *mut ::core::ffi::c_void;
25pub type HttpFormUrlEncodedContent = *mut ::core::ffi::c_void;
26pub type HttpGetBufferResult = *mut ::core::ffi::c_void;
27pub type HttpGetInputStreamResult = *mut ::core::ffi::c_void;
28pub type HttpGetStringResult = *mut ::core::ffi::c_void;
29pub type HttpMethod = *mut ::core::ffi::c_void;
30pub type HttpMultipartContent = *mut ::core::ffi::c_void;
31pub type HttpMultipartFormDataContent = *mut ::core::ffi::c_void;
32#[repr(C)]
04454e1e 33#[doc = "*Required features: `\"Web_Http\"`, `\"Foundation\"`*"]
5e7ed085
FG
34#[cfg(feature = "Foundation")]
35pub struct HttpProgress {
36 pub Stage: HttpProgressStage,
37 pub BytesSent: u64,
38 pub TotalBytesToSend: super::super::Foundation::IReference,
39 pub BytesReceived: u64,
40 pub TotalBytesToReceive: super::super::Foundation::IReference,
41 pub Retries: u32,
42}
43#[cfg(feature = "Foundation")]
44impl ::core::marker::Copy for HttpProgress {}
45#[cfg(feature = "Foundation")]
46impl ::core::clone::Clone for HttpProgress {
47 fn clone(&self) -> Self {
48 *self
49 }
50}
04454e1e 51#[doc = "*Required features: `\"Web_Http\"`*"]
5e7ed085
FG
52#[repr(transparent)]
53pub struct HttpProgressStage(pub i32);
54impl HttpProgressStage {
55 pub const None: Self = Self(0i32);
56 pub const DetectingProxy: Self = Self(10i32);
57 pub const ResolvingName: Self = Self(20i32);
58 pub const ConnectingToServer: Self = Self(30i32);
59 pub const NegotiatingSsl: Self = Self(40i32);
60 pub const SendingHeaders: Self = Self(50i32);
61 pub const SendingContent: Self = Self(60i32);
62 pub const WaitingForResponse: Self = Self(70i32);
63 pub const ReceivingHeaders: Self = Self(80i32);
64 pub const ReceivingContent: Self = Self(90i32);
65}
66impl ::core::marker::Copy for HttpProgressStage {}
67impl ::core::clone::Clone for HttpProgressStage {
68 fn clone(&self) -> Self {
69 *self
70 }
71}
72pub type HttpRequestMessage = *mut ::core::ffi::c_void;
73pub type HttpRequestResult = *mut ::core::ffi::c_void;
74pub type HttpResponseMessage = *mut ::core::ffi::c_void;
04454e1e 75#[doc = "*Required features: `\"Web_Http\"`*"]
5e7ed085
FG
76#[repr(transparent)]
77pub struct HttpResponseMessageSource(pub i32);
78impl HttpResponseMessageSource {
79 pub const None: Self = Self(0i32);
80 pub const Cache: Self = Self(1i32);
81 pub const Network: Self = Self(2i32);
82}
83impl ::core::marker::Copy for HttpResponseMessageSource {}
84impl ::core::clone::Clone for HttpResponseMessageSource {
85 fn clone(&self) -> Self {
86 *self
87 }
88}
04454e1e 89#[doc = "*Required features: `\"Web_Http\"`*"]
5e7ed085
FG
90#[repr(transparent)]
91pub struct HttpStatusCode(pub i32);
92impl HttpStatusCode {
93 pub const None: Self = Self(0i32);
94 pub const Continue: Self = Self(100i32);
95 pub const SwitchingProtocols: Self = Self(101i32);
96 pub const Processing: Self = Self(102i32);
97 pub const Ok: Self = Self(200i32);
98 pub const Created: Self = Self(201i32);
99 pub const Accepted: Self = Self(202i32);
100 pub const NonAuthoritativeInformation: Self = Self(203i32);
101 pub const NoContent: Self = Self(204i32);
102 pub const ResetContent: Self = Self(205i32);
103 pub const PartialContent: Self = Self(206i32);
104 pub const MultiStatus: Self = Self(207i32);
105 pub const AlreadyReported: Self = Self(208i32);
106 pub const IMUsed: Self = Self(226i32);
107 pub const MultipleChoices: Self = Self(300i32);
108 pub const MovedPermanently: Self = Self(301i32);
109 pub const Found: Self = Self(302i32);
110 pub const SeeOther: Self = Self(303i32);
111 pub const NotModified: Self = Self(304i32);
112 pub const UseProxy: Self = Self(305i32);
113 pub const TemporaryRedirect: Self = Self(307i32);
114 pub const PermanentRedirect: Self = Self(308i32);
115 pub const BadRequest: Self = Self(400i32);
116 pub const Unauthorized: Self = Self(401i32);
117 pub const PaymentRequired: Self = Self(402i32);
118 pub const Forbidden: Self = Self(403i32);
119 pub const NotFound: Self = Self(404i32);
120 pub const MethodNotAllowed: Self = Self(405i32);
121 pub const NotAcceptable: Self = Self(406i32);
122 pub const ProxyAuthenticationRequired: Self = Self(407i32);
123 pub const RequestTimeout: Self = Self(408i32);
124 pub const Conflict: Self = Self(409i32);
125 pub const Gone: Self = Self(410i32);
126 pub const LengthRequired: Self = Self(411i32);
127 pub const PreconditionFailed: Self = Self(412i32);
128 pub const RequestEntityTooLarge: Self = Self(413i32);
129 pub const RequestUriTooLong: Self = Self(414i32);
130 pub const UnsupportedMediaType: Self = Self(415i32);
131 pub const RequestedRangeNotSatisfiable: Self = Self(416i32);
132 pub const ExpectationFailed: Self = Self(417i32);
133 pub const UnprocessableEntity: Self = Self(422i32);
134 pub const Locked: Self = Self(423i32);
135 pub const FailedDependency: Self = Self(424i32);
136 pub const UpgradeRequired: Self = Self(426i32);
137 pub const PreconditionRequired: Self = Self(428i32);
138 pub const TooManyRequests: Self = Self(429i32);
139 pub const RequestHeaderFieldsTooLarge: Self = Self(431i32);
140 pub const InternalServerError: Self = Self(500i32);
141 pub const NotImplemented: Self = Self(501i32);
142 pub const BadGateway: Self = Self(502i32);
143 pub const ServiceUnavailable: Self = Self(503i32);
144 pub const GatewayTimeout: Self = Self(504i32);
145 pub const HttpVersionNotSupported: Self = Self(505i32);
146 pub const VariantAlsoNegotiates: Self = Self(506i32);
147 pub const InsufficientStorage: Self = Self(507i32);
148 pub const LoopDetected: Self = Self(508i32);
149 pub const NotExtended: Self = Self(510i32);
150 pub const NetworkAuthenticationRequired: Self = Self(511i32);
151}
152impl ::core::marker::Copy for HttpStatusCode {}
153impl ::core::clone::Clone for HttpStatusCode {
154 fn clone(&self) -> Self {
155 *self
156 }
157}
158pub type HttpStreamContent = *mut ::core::ffi::c_void;
159pub type HttpStringContent = *mut ::core::ffi::c_void;
160pub type HttpTransportInformation = *mut ::core::ffi::c_void;
04454e1e 161#[doc = "*Required features: `\"Web_Http\"`*"]
5e7ed085
FG
162#[repr(transparent)]
163pub struct HttpVersion(pub i32);
164impl HttpVersion {
165 pub const None: Self = Self(0i32);
166 pub const Http10: Self = Self(1i32);
167 pub const Http11: Self = Self(2i32);
168 pub const Http20: Self = Self(3i32);
169}
170impl ::core::marker::Copy for HttpVersion {}
171impl ::core::clone::Clone for HttpVersion {
172 fn clone(&self) -> Self {
173 *self
174 }
175}
176pub type IHttpContent = *mut ::core::ffi::c_void;