| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/cppwinrt/winrt/impl/ |
Upload File : |
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_Web_Http_2_H
#define WINRT_Windows_Web_Http_2_H
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
#include "winrt/impl/Windows.Storage.Streams.2.h"
#include "winrt/impl/Windows.Web.Http.Filters.2.h"
#include "winrt/impl/Windows.Web.Http.1.h"
namespace winrt::Windows::Web::Http
{
struct HttpProgress
{
Windows::Web::Http::HttpProgressStage Stage;
uint64_t BytesSent;
Windows::Foundation::IReference<uint64_t> TotalBytesToSend;
uint64_t BytesReceived;
Windows::Foundation::IReference<uint64_t> TotalBytesToReceive;
uint32_t Retries;
};
inline bool operator==(HttpProgress const& left, HttpProgress const& right) noexcept
{
return left.Stage == right.Stage && left.BytesSent == right.BytesSent && left.TotalBytesToSend == right.TotalBytesToSend && left.BytesReceived == right.BytesReceived && left.TotalBytesToReceive == right.TotalBytesToReceive && left.Retries == right.Retries;
}
inline bool operator!=(HttpProgress const& left, HttpProgress const& right) noexcept
{
return !(left == right);
}
struct __declspec(empty_bases) HttpBufferContent : Windows::Web::Http::IHttpContent,
impl::require<HttpBufferContent, Windows::Foundation::IStringable>
{
HttpBufferContent(std::nullptr_t) noexcept {}
HttpBufferContent(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpBufferContent(Windows::Storage::Streams::IBuffer const& content);
HttpBufferContent(Windows::Storage::Streams::IBuffer const& content, uint32_t offset, uint32_t count);
};
struct __declspec(empty_bases) HttpClient : Windows::Web::Http::IHttpClient,
impl::require<HttpClient, Windows::Web::Http::IHttpClient2, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpClient(std::nullptr_t) noexcept {}
HttpClient(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpClient(ptr, take_ownership_from_abi) {}
HttpClient();
HttpClient(Windows::Web::Http::Filters::IHttpFilter const& filter);
};
struct __declspec(empty_bases) HttpCookie : Windows::Web::Http::IHttpCookie,
impl::require<HttpCookie, Windows::Foundation::IStringable>
{
HttpCookie(std::nullptr_t) noexcept {}
HttpCookie(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpCookie(ptr, take_ownership_from_abi) {}
HttpCookie(param::hstring const& name, param::hstring const& domain, param::hstring const& path);
};
struct __declspec(empty_bases) HttpCookieCollection : Windows::Foundation::Collections::IVectorView<Windows::Web::Http::HttpCookie>
{
HttpCookieCollection(std::nullptr_t) noexcept {}
HttpCookieCollection(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Foundation::Collections::IVectorView<Windows::Web::Http::HttpCookie>(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) HttpCookieManager : Windows::Web::Http::IHttpCookieManager
{
HttpCookieManager(std::nullptr_t) noexcept {}
HttpCookieManager(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpCookieManager(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) HttpFormUrlEncodedContent : Windows::Web::Http::IHttpContent,
impl::require<HttpFormUrlEncodedContent, Windows::Foundation::IStringable>
{
HttpFormUrlEncodedContent(std::nullptr_t) noexcept {}
HttpFormUrlEncodedContent(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpFormUrlEncodedContent(param::iterable<Windows::Foundation::Collections::IKeyValuePair<hstring, hstring>> const& content);
};
struct __declspec(empty_bases) HttpGetBufferResult : Windows::Web::Http::IHttpGetBufferResult,
impl::require<HttpGetBufferResult, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpGetBufferResult(std::nullptr_t) noexcept {}
HttpGetBufferResult(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpGetBufferResult(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) HttpGetInputStreamResult : Windows::Web::Http::IHttpGetInputStreamResult,
impl::require<HttpGetInputStreamResult, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpGetInputStreamResult(std::nullptr_t) noexcept {}
HttpGetInputStreamResult(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpGetInputStreamResult(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) HttpGetStringResult : Windows::Web::Http::IHttpGetStringResult,
impl::require<HttpGetStringResult, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpGetStringResult(std::nullptr_t) noexcept {}
HttpGetStringResult(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpGetStringResult(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) HttpMethod : Windows::Web::Http::IHttpMethod,
impl::require<HttpMethod, Windows::Foundation::IStringable>
{
HttpMethod(std::nullptr_t) noexcept {}
HttpMethod(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpMethod(ptr, take_ownership_from_abi) {}
HttpMethod(param::hstring const& method);
[[nodiscard]] static auto Delete();
[[nodiscard]] static auto Get();
[[nodiscard]] static auto Head();
[[nodiscard]] static auto Options();
[[nodiscard]] static auto Patch();
[[nodiscard]] static auto Post();
[[nodiscard]] static auto Put();
};
struct __declspec(empty_bases) HttpMultipartContent : Windows::Web::Http::IHttpContent,
impl::require<HttpMultipartContent, Windows::Web::Http::IHttpMultipartContent, Windows::Foundation::Collections::IIterable<Windows::Web::Http::IHttpContent>, Windows::Foundation::IStringable>
{
HttpMultipartContent(std::nullptr_t) noexcept {}
HttpMultipartContent(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpMultipartContent();
HttpMultipartContent(param::hstring const& subtype);
HttpMultipartContent(param::hstring const& subtype, param::hstring const& boundary);
};
struct __declspec(empty_bases) HttpMultipartFormDataContent : Windows::Web::Http::IHttpContent,
impl::require<HttpMultipartFormDataContent, Windows::Web::Http::IHttpMultipartFormDataContent, Windows::Foundation::Collections::IIterable<Windows::Web::Http::IHttpContent>, Windows::Foundation::IStringable>
{
HttpMultipartFormDataContent(std::nullptr_t) noexcept {}
HttpMultipartFormDataContent(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpMultipartFormDataContent();
HttpMultipartFormDataContent(param::hstring const& boundary);
};
struct __declspec(empty_bases) HttpRequestMessage : Windows::Web::Http::IHttpRequestMessage,
impl::require<HttpRequestMessage, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpRequestMessage(std::nullptr_t) noexcept {}
HttpRequestMessage(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpRequestMessage(ptr, take_ownership_from_abi) {}
HttpRequestMessage();
HttpRequestMessage(Windows::Web::Http::HttpMethod const& method, Windows::Foundation::Uri const& uri);
};
struct __declspec(empty_bases) HttpRequestResult : Windows::Web::Http::IHttpRequestResult,
impl::require<HttpRequestResult, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpRequestResult(std::nullptr_t) noexcept {}
HttpRequestResult(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpRequestResult(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) HttpResponseMessage : Windows::Web::Http::IHttpResponseMessage,
impl::require<HttpResponseMessage, Windows::Foundation::IClosable, Windows::Foundation::IStringable>
{
HttpResponseMessage(std::nullptr_t) noexcept {}
HttpResponseMessage(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpResponseMessage(ptr, take_ownership_from_abi) {}
HttpResponseMessage();
HttpResponseMessage(Windows::Web::Http::HttpStatusCode const& statusCode);
};
struct __declspec(empty_bases) HttpStreamContent : Windows::Web::Http::IHttpContent,
impl::require<HttpStreamContent, Windows::Foundation::IStringable>
{
HttpStreamContent(std::nullptr_t) noexcept {}
HttpStreamContent(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpStreamContent(Windows::Storage::Streams::IInputStream const& content);
};
struct __declspec(empty_bases) HttpStringContent : Windows::Web::Http::IHttpContent,
impl::require<HttpStringContent, Windows::Foundation::IStringable>
{
HttpStringContent(std::nullptr_t) noexcept {}
HttpStringContent(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpStringContent(param::hstring const& content);
HttpStringContent(param::hstring const& content, Windows::Storage::Streams::UnicodeEncoding const& encoding);
HttpStringContent(param::hstring const& content, Windows::Storage::Streams::UnicodeEncoding const& encoding, param::hstring const& mediaType);
};
struct __declspec(empty_bases) HttpTransportInformation : Windows::Web::Http::IHttpTransportInformation,
impl::require<HttpTransportInformation, Windows::Foundation::IStringable>
{
HttpTransportInformation(std::nullptr_t) noexcept {}
HttpTransportInformation(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Web::Http::IHttpTransportInformation(ptr, take_ownership_from_abi) {}
};
}
#endif