Files
nearby/cpp/platform/impl/windows/generated/winrt/impl/Windows.Web.Http.2.h
T
hai007 b1815095dd BEGIN_PUBLIC
Microsoft has updated the winrt library
END_PUBLC

PiperOrigin-RevId: 387168248
2021-07-29 03:27:37 -07:00

236 lines
16 KiB
C++

// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
#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"
WINRT_EXPORT namespace winrt::Windows::Web::Http
{
struct HttpProgress
{
winrt::Windows::Web::Http::HttpProgressStage Stage;
uint64_t BytesSent;
winrt::Windows::Foundation::IReference<uint64_t> TotalBytesToSend;
uint64_t BytesReceived;
winrt::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 : winrt::Windows::Web::Http::IHttpContent,
impl::require<HttpBufferContent, winrt::Windows::Foundation::IStringable>
{
HttpBufferContent(std::nullptr_t) noexcept {}
HttpBufferContent(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
explicit HttpBufferContent(winrt::Windows::Storage::Streams::IBuffer const& content);
HttpBufferContent(winrt::Windows::Storage::Streams::IBuffer const& content, uint32_t offset, uint32_t count);
HttpBufferContent(HttpBufferContent const&) noexcept = default;
HttpBufferContent(HttpBufferContent&&) noexcept = default;
HttpBufferContent& operator=(HttpBufferContent const&) & noexcept = default;
HttpBufferContent& operator=(HttpBufferContent&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpClient : winrt::Windows::Web::Http::IHttpClient,
impl::require<HttpClient, winrt::Windows::Web::Http::IHttpClient2, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpClient(std::nullptr_t) noexcept {}
HttpClient(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpClient(ptr, take_ownership_from_abi) {}
HttpClient();
explicit HttpClient(winrt::Windows::Web::Http::Filters::IHttpFilter const& filter);
HttpClient(HttpClient const&) noexcept = default;
HttpClient(HttpClient&&) noexcept = default;
HttpClient& operator=(HttpClient const&) & noexcept = default;
HttpClient& operator=(HttpClient&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpCookie : winrt::Windows::Web::Http::IHttpCookie,
impl::require<HttpCookie, winrt::Windows::Foundation::IStringable>
{
HttpCookie(std::nullptr_t) noexcept {}
HttpCookie(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpCookie(ptr, take_ownership_from_abi) {}
HttpCookie(param::hstring const& name, param::hstring const& domain, param::hstring const& path);
HttpCookie(HttpCookie const&) noexcept = default;
HttpCookie(HttpCookie&&) noexcept = default;
HttpCookie& operator=(HttpCookie const&) & noexcept = default;
HttpCookie& operator=(HttpCookie&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpCookieCollection : winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Web::Http::HttpCookie>
{
HttpCookieCollection(std::nullptr_t) noexcept {}
HttpCookieCollection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Web::Http::HttpCookie>(ptr, take_ownership_from_abi) {}
HttpCookieCollection(HttpCookieCollection const&) noexcept = default;
HttpCookieCollection(HttpCookieCollection&&) noexcept = default;
HttpCookieCollection& operator=(HttpCookieCollection const&) & noexcept = default;
HttpCookieCollection& operator=(HttpCookieCollection&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpCookieManager : winrt::Windows::Web::Http::IHttpCookieManager
{
HttpCookieManager(std::nullptr_t) noexcept {}
HttpCookieManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpCookieManager(ptr, take_ownership_from_abi) {}
HttpCookieManager(HttpCookieManager const&) noexcept = default;
HttpCookieManager(HttpCookieManager&&) noexcept = default;
HttpCookieManager& operator=(HttpCookieManager const&) & noexcept = default;
HttpCookieManager& operator=(HttpCookieManager&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpFormUrlEncodedContent : winrt::Windows::Web::Http::IHttpContent,
impl::require<HttpFormUrlEncodedContent, winrt::Windows::Foundation::IStringable>
{
HttpFormUrlEncodedContent(std::nullptr_t) noexcept {}
HttpFormUrlEncodedContent(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
explicit HttpFormUrlEncodedContent(param::iterable<winrt::Windows::Foundation::Collections::IKeyValuePair<hstring, hstring>> const& content);
HttpFormUrlEncodedContent(HttpFormUrlEncodedContent const&) noexcept = default;
HttpFormUrlEncodedContent(HttpFormUrlEncodedContent&&) noexcept = default;
HttpFormUrlEncodedContent& operator=(HttpFormUrlEncodedContent const&) & noexcept = default;
HttpFormUrlEncodedContent& operator=(HttpFormUrlEncodedContent&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpGetBufferResult : winrt::Windows::Web::Http::IHttpGetBufferResult,
impl::require<HttpGetBufferResult, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpGetBufferResult(std::nullptr_t) noexcept {}
HttpGetBufferResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpGetBufferResult(ptr, take_ownership_from_abi) {}
HttpGetBufferResult(HttpGetBufferResult const&) noexcept = default;
HttpGetBufferResult(HttpGetBufferResult&&) noexcept = default;
HttpGetBufferResult& operator=(HttpGetBufferResult const&) & noexcept = default;
HttpGetBufferResult& operator=(HttpGetBufferResult&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpGetInputStreamResult : winrt::Windows::Web::Http::IHttpGetInputStreamResult,
impl::require<HttpGetInputStreamResult, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpGetInputStreamResult(std::nullptr_t) noexcept {}
HttpGetInputStreamResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpGetInputStreamResult(ptr, take_ownership_from_abi) {}
HttpGetInputStreamResult(HttpGetInputStreamResult const&) noexcept = default;
HttpGetInputStreamResult(HttpGetInputStreamResult&&) noexcept = default;
HttpGetInputStreamResult& operator=(HttpGetInputStreamResult const&) & noexcept = default;
HttpGetInputStreamResult& operator=(HttpGetInputStreamResult&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpGetStringResult : winrt::Windows::Web::Http::IHttpGetStringResult,
impl::require<HttpGetStringResult, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpGetStringResult(std::nullptr_t) noexcept {}
HttpGetStringResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpGetStringResult(ptr, take_ownership_from_abi) {}
HttpGetStringResult(HttpGetStringResult const&) noexcept = default;
HttpGetStringResult(HttpGetStringResult&&) noexcept = default;
HttpGetStringResult& operator=(HttpGetStringResult const&) & noexcept = default;
HttpGetStringResult& operator=(HttpGetStringResult&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpMethod : winrt::Windows::Web::Http::IHttpMethod,
impl::require<HttpMethod, winrt::Windows::Foundation::IStringable>
{
HttpMethod(std::nullptr_t) noexcept {}
HttpMethod(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpMethod(ptr, take_ownership_from_abi) {}
explicit HttpMethod(param::hstring const& method);
HttpMethod(HttpMethod const&) noexcept = default;
HttpMethod(HttpMethod&&) noexcept = default;
HttpMethod& operator=(HttpMethod const&) & noexcept = default;
HttpMethod& operator=(HttpMethod&&) & noexcept = default;
[[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 : winrt::Windows::Web::Http::IHttpContent,
impl::require<HttpMultipartContent, winrt::Windows::Web::Http::IHttpMultipartContent, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Web::Http::IHttpContent>, winrt::Windows::Foundation::IStringable>
{
HttpMultipartContent(std::nullptr_t) noexcept {}
HttpMultipartContent(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpMultipartContent();
explicit HttpMultipartContent(param::hstring const& subtype);
HttpMultipartContent(param::hstring const& subtype, param::hstring const& boundary);
HttpMultipartContent(HttpMultipartContent const&) noexcept = default;
HttpMultipartContent(HttpMultipartContent&&) noexcept = default;
HttpMultipartContent& operator=(HttpMultipartContent const&) & noexcept = default;
HttpMultipartContent& operator=(HttpMultipartContent&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpMultipartFormDataContent : winrt::Windows::Web::Http::IHttpContent,
impl::require<HttpMultipartFormDataContent, winrt::Windows::Web::Http::IHttpMultipartFormDataContent, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Web::Http::IHttpContent>, winrt::Windows::Foundation::IStringable>
{
HttpMultipartFormDataContent(std::nullptr_t) noexcept {}
HttpMultipartFormDataContent(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
HttpMultipartFormDataContent();
explicit HttpMultipartFormDataContent(param::hstring const& boundary);
HttpMultipartFormDataContent(HttpMultipartFormDataContent const&) noexcept = default;
HttpMultipartFormDataContent(HttpMultipartFormDataContent&&) noexcept = default;
HttpMultipartFormDataContent& operator=(HttpMultipartFormDataContent const&) & noexcept = default;
HttpMultipartFormDataContent& operator=(HttpMultipartFormDataContent&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpRequestMessage : winrt::Windows::Web::Http::IHttpRequestMessage,
impl::require<HttpRequestMessage, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpRequestMessage(std::nullptr_t) noexcept {}
HttpRequestMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpRequestMessage(ptr, take_ownership_from_abi) {}
HttpRequestMessage();
HttpRequestMessage(winrt::Windows::Web::Http::HttpMethod const& method, winrt::Windows::Foundation::Uri const& uri);
HttpRequestMessage(HttpRequestMessage const&) noexcept = default;
HttpRequestMessage(HttpRequestMessage&&) noexcept = default;
HttpRequestMessage& operator=(HttpRequestMessage const&) & noexcept = default;
HttpRequestMessage& operator=(HttpRequestMessage&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpRequestResult : winrt::Windows::Web::Http::IHttpRequestResult,
impl::require<HttpRequestResult, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpRequestResult(std::nullptr_t) noexcept {}
HttpRequestResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpRequestResult(ptr, take_ownership_from_abi) {}
HttpRequestResult(HttpRequestResult const&) noexcept = default;
HttpRequestResult(HttpRequestResult&&) noexcept = default;
HttpRequestResult& operator=(HttpRequestResult const&) & noexcept = default;
HttpRequestResult& operator=(HttpRequestResult&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpResponseMessage : winrt::Windows::Web::Http::IHttpResponseMessage,
impl::require<HttpResponseMessage, winrt::Windows::Foundation::IClosable, winrt::Windows::Foundation::IStringable>
{
HttpResponseMessage(std::nullptr_t) noexcept {}
HttpResponseMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpResponseMessage(ptr, take_ownership_from_abi) {}
HttpResponseMessage();
explicit HttpResponseMessage(winrt::Windows::Web::Http::HttpStatusCode const& statusCode);
HttpResponseMessage(HttpResponseMessage const&) noexcept = default;
HttpResponseMessage(HttpResponseMessage&&) noexcept = default;
HttpResponseMessage& operator=(HttpResponseMessage const&) & noexcept = default;
HttpResponseMessage& operator=(HttpResponseMessage&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpStreamContent : winrt::Windows::Web::Http::IHttpContent,
impl::require<HttpStreamContent, winrt::Windows::Foundation::IStringable>
{
HttpStreamContent(std::nullptr_t) noexcept {}
HttpStreamContent(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
explicit HttpStreamContent(winrt::Windows::Storage::Streams::IInputStream const& content);
HttpStreamContent(HttpStreamContent const&) noexcept = default;
HttpStreamContent(HttpStreamContent&&) noexcept = default;
HttpStreamContent& operator=(HttpStreamContent const&) & noexcept = default;
HttpStreamContent& operator=(HttpStreamContent&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpStringContent : winrt::Windows::Web::Http::IHttpContent,
impl::require<HttpStringContent, winrt::Windows::Foundation::IStringable>
{
HttpStringContent(std::nullptr_t) noexcept {}
HttpStringContent(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpContent(ptr, take_ownership_from_abi) {}
explicit HttpStringContent(param::hstring const& content);
HttpStringContent(param::hstring const& content, winrt::Windows::Storage::Streams::UnicodeEncoding const& encoding);
HttpStringContent(param::hstring const& content, winrt::Windows::Storage::Streams::UnicodeEncoding const& encoding, param::hstring const& mediaType);
HttpStringContent(HttpStringContent const&) noexcept = default;
HttpStringContent(HttpStringContent&&) noexcept = default;
HttpStringContent& operator=(HttpStringContent const&) & noexcept = default;
HttpStringContent& operator=(HttpStringContent&&) & noexcept = default;
};
struct __declspec(empty_bases) HttpTransportInformation : winrt::Windows::Web::Http::IHttpTransportInformation,
impl::require<HttpTransportInformation, winrt::Windows::Foundation::IStringable>
{
HttpTransportInformation(std::nullptr_t) noexcept {}
HttpTransportInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Web::Http::IHttpTransportInformation(ptr, take_ownership_from_abi) {}
HttpTransportInformation(HttpTransportInformation const&) noexcept = default;
HttpTransportInformation(HttpTransportInformation&&) noexcept = default;
HttpTransportInformation& operator=(HttpTransportInformation const&) & noexcept = default;
HttpTransportInformation& operator=(HttpTransportInformation&&) & noexcept = default;
};
}
#endif