// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1 // swiftlint:disable all import Foundation @_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation import CWinRT private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClient: WindowsFoundation.IID { .init(Data1: 0x7FDA1151, Data2: 0x3574, Data3: 0x4880, Data4: ( 0xA8,0xBA,0xE6,0xB1,0xE0,0x06,0x1F,0x3D ))// 7FDA1151-3574-4880-A8BA-E6B1E0061F3D } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClient2: WindowsFoundation.IID { .init(Data1: 0xCDD83348, Data2: 0xE8B7, Data3: 0x4CEC, Data4: ( 0xB1,0xB0,0xDC,0x45,0x5F,0xE7,0x2C,0x92 ))// CDD83348-E8B7-4CEC-B1B0-DC455FE72C92 } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClientFactory: WindowsFoundation.IID { .init(Data1: 0xC30C4ECA, Data2: 0xE3FA, Data3: 0x4F99, Data4: ( 0xAF,0xB4,0x63,0xCC,0x65,0x00,0x94,0x62 ))// C30C4ECA-E3FA-4F99-AFB4-63CC65009462 } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpContent: WindowsFoundation.IID { .init(Data1: 0x6B14A441, Data2: 0xFBA7, Data3: 0x4BD2, Data4: ( 0xAF,0x0A,0x83,0x9D,0xE7,0xC2,0x95,0xDA ))// 6B14A441-FBA7-4BD2-AF0A-839DE7C295DA } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult: WindowsFoundation.IID { .init(Data1: 0x53D08E7C, Data2: 0xE209, Data3: 0x404E, Data4: ( 0x9A,0x49,0x74,0x2D,0x82,0x36,0xFD,0x3A ))// 53D08E7C-E209-404E-9A49-742D8236FD3A } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult: WindowsFoundation.IID { .init(Data1: 0xD5D63463, Data2: 0x13AA, Data3: 0x4EE0, Data4: ( 0xBE,0x95,0xA0,0xC3,0x9F,0xE9,0x12,0x03 ))// D5D63463-13AA-4EE0-BE95-A0C39FE91203 } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult: WindowsFoundation.IID { .init(Data1: 0x9BAC466D, Data2: 0x8509, Data3: 0x4775, Data4: ( 0xB1,0x6D,0x89,0x53,0xF4,0x7A,0x7F,0x5F ))// 9BAC466D-8509-4775-B16D-8953F47A7F5F } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethod: WindowsFoundation.IID { .init(Data1: 0x728D4022, Data2: 0x700D, Data3: 0x4FE0, Data4: ( 0xAF,0xA5,0x40,0x29,0x9C,0x58,0xDB,0xFD ))// 728D4022-700D-4FE0-AFA5-40299C58DBFD } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethodFactory: WindowsFoundation.IID { .init(Data1: 0x3C51D10D, Data2: 0x36D7, Data3: 0x40F8, Data4: ( 0xA8,0x6D,0xE7,0x59,0xCA,0xF2,0xF8,0x3F ))// 3C51D10D-36D7-40F8-A86D-E759CAF2F83F } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics: WindowsFoundation.IID { .init(Data1: 0x64D171F0, Data2: 0xD99A, Data3: 0x4153, Data4: ( 0x8D,0xC6,0xD6,0x8C,0xC4,0xCC,0xE3,0x17 ))// 64D171F0-D99A-4153-8DC6-D68CC4CCE317 } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage: WindowsFoundation.IID { .init(Data1: 0xF5762B3C, Data2: 0x74D4, Data3: 0x4811, Data4: ( 0xB5,0xDC,0x9F,0x8B,0x4E,0x2F,0x9A,0xBF ))// F5762B3C-74D4-4811-B5DC-9F8B4E2F9ABF } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessageFactory: WindowsFoundation.IID { .init(Data1: 0x5BAC994E, Data2: 0x3886, Data3: 0x412E, Data4: ( 0xAE,0xC3,0x52,0xEC,0x7F,0x25,0x61,0x6F ))// 5BAC994E-3886-412E-AEC3-52EC7F25616F } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestResult: WindowsFoundation.IID { .init(Data1: 0x6ACF4DA8, Data2: 0xB5EB, Data3: 0x4A35, Data4: ( 0xA9,0x02,0x42,0x17,0xFB,0xE8,0x20,0xC5 ))// 6ACF4DA8-B5EB-4A35-A902-4217FBE820C5 } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage: WindowsFoundation.IID { .init(Data1: 0xFEE200FB, Data2: 0x8664, Data3: 0x44E0, Data4: ( 0x95,0xD9,0x42,0x69,0x61,0x99,0xBF,0xFC ))// FEE200FB-8664-44E0-95D9-42696199BFFC } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessageFactory: WindowsFoundation.IID { .init(Data1: 0x52A8AF99, Data2: 0xF095, Data3: 0x43DA, Data4: ( 0xB6,0x0F,0x7C,0xFC,0x2B,0xC7,0xEA,0x2F ))// 52A8AF99-F095-43DA-B60F-7CFC2BC7EA2F } private var IID___x_ABI_CWindows_CWeb_CHttp_CIHttpTransportInformation: WindowsFoundation.IID { .init(Data1: 0x70127198, Data2: 0xC6A7, Data3: 0x4ED0, Data4: ( 0x83,0x3A,0x83,0xFD,0x8B,0x8F,0x17,0x8D ))// 70127198-C6A7-4ED0-833A-83FD8B8F178D } public enum __ABI_Windows_Web_Http { public class IHttpClient: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClient } internal func DeleteAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.DeleteAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func GetAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func GetWithOptionAsyncImpl(_ uri: WindowsFoundation.Uri?, _ completionOption: UWP.HttpCompletionOption) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetWithOptionAsync(pThis, RawPointer(uri), completionOption, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func GetBufferAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetBufferAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CStorage__CStreams__CIBuffer___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func GetInputStreamAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetInputStreamAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CStorage__CStreams__CIInputStream___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func GetStringAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetStringAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_HSTRING___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func PostAsyncImpl(_ uri: WindowsFoundation.Uri?, _ content: UWP.AnyIHttpContent?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in let contentWrapper = __ABI_Windows_Web_Http.IHttpContentWrapper(content) let _content = try! contentWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.PostAsync(pThis, RawPointer(uri), _content, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func PutAsyncImpl(_ uri: WindowsFoundation.Uri?, _ content: UWP.AnyIHttpContent?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in let contentWrapper = __ABI_Windows_Web_Http.IHttpContentWrapper(content) let _content = try! contentWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.PutAsync(pThis, RawPointer(uri), _content, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func SendRequestAsyncImpl(_ request: UWP.HttpRequestMessage?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.SendRequestAsync(pThis, RawPointer(request), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func SendRequestWithOptionAsyncImpl(_ request: UWP.HttpRequestMessage?, _ completionOption: UWP.HttpCompletionOption) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.SendRequestWithOptionAsync(pThis, RawPointer(request), completionOption, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpResponseMessage___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func get_DefaultRequestHeadersImpl() throws -> UWP.HttpRequestHeaderCollection? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultRequestHeaders(pThis, &valueAbi)) } } return .from(abi: value) } } public class IHttpClient2: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClient2 } internal func TryDeleteAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryDeleteAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryGetAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryGetAsync2Impl(_ uri: WindowsFoundation.Uri?, _ completionOption: UWP.HttpCompletionOption) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetAsync2(pThis, RawPointer(uri), completionOption, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryGetBufferAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetBufferAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpGetBufferResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryGetInputStreamAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetInputStreamAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpGetInputStreamResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryGetStringAsyncImpl(_ uri: WindowsFoundation.Uri?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetStringAsync(pThis, RawPointer(uri), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpGetStringResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryPostAsyncImpl(_ uri: WindowsFoundation.Uri?, _ content: UWP.AnyIHttpContent?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in let contentWrapper = __ABI_Windows_Web_Http.IHttpContentWrapper(content) let _content = try! contentWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryPostAsync(pThis, RawPointer(uri), _content, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TryPutAsyncImpl(_ uri: WindowsFoundation.Uri?, _ content: UWP.AnyIHttpContent?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in let contentWrapper = __ABI_Windows_Web_Http.IHttpContentWrapper(content) let _content = try! contentWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryPutAsync(pThis, RawPointer(uri), _content, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TrySendRequestAsyncImpl(_ request: UWP.HttpRequestMessage?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TrySendRequestAsync(pThis, RawPointer(request), &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } internal func TrySendRequestAsync2Impl(_ request: UWP.HttpRequestMessage?, _ completionOption: UWP.HttpCompletionOption) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClient2.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TrySendRequestAsync2(pThis, RawPointer(request), completionOption, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CWeb__CHttp__CHttpRequestResult___x_ABI_CWindows__CWeb__CHttp__CHttpProgressWrapper.unwrapFrom(abi: operation) } } public class IHttpClientFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClientFactory } internal func CreateImpl(_ filter: UWP.AnyIHttpFilter?) throws -> IHttpClient { let (value) = try ComPtrs.initialize { valueAbi in let filterWrapper = __ABI_Windows_Web_Http_Filters.IHttpFilterWrapper(filter) let _filter = try! filterWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpClientFactory.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, _filter, &valueAbi)) } } return IHttpClient(value!) } } public class IHttpContent: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpContent } open func get_HeadersImpl() throws -> UWP.HttpContentHeaderCollection? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Headers(pThis, &valueAbi)) } } return .from(abi: value) } open func BufferAllAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.BufferAllAsync(pThis, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_UINT64_UINT64Wrapper.unwrapFrom(abi: operation) } open func ReadAsBufferAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ReadAsBufferAsync(pThis, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CStorage__CStreams__CIBuffer_UINT64Wrapper.unwrapFrom(abi: operation) } open func ReadAsInputStreamAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ReadAsInputStreamAsync(pThis, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CStorage__CStreams__CIInputStream_UINT64Wrapper.unwrapFrom(abi: operation) } open func ReadAsStringAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ReadAsStringAsync(pThis, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_HSTRING_UINT64Wrapper.unwrapFrom(abi: operation) } open func TryComputeLengthImpl(_ length: inout UInt64) throws -> Bool { var succeeded: boolean = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.TryComputeLength(pThis, &length, &succeeded)) } return .init(from: succeeded) } open func WriteToStreamAsyncImpl(_ outputStream: UWP.AnyIOutputStream?) throws -> WindowsFoundation.AnyIAsyncOperationWithProgress? { let (operation) = try ComPtrs.initialize { operationAbi in let outputStreamWrapper = __ABI_Windows_Storage_Streams.IOutputStreamWrapper(outputStream) let _outputStream = try! outputStreamWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpContent.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.WriteToStreamAsync(pThis, _outputStream, &operationAbi)) } } return UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_UINT64_UINT64Wrapper.unwrapFrom(abi: operation) } } internal static var IHttpContentVTable: __x_ABI_CWindows_CWeb_CHttp_CIHttpContentVtbl = .init( QueryInterface: { IHttpContentWrapper.queryInterface($0, $1, $2) }, AddRef: { IHttpContentWrapper.addRef($0) }, Release: { IHttpContentWrapper.release($0) }, GetIids: { let size = MemoryLayout.size let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) iids[0] = IUnknown.IID iids[1] = IInspectable.IID iids[2] = __ABI_Windows_Web_Http.IHttpContentWrapper.IID iids[3] = __ABI_Windows_Foundation.IClosableWrapper.IID $1!.pointee = 4 $2!.pointee = iids return S_OK }, GetRuntimeClassName: { _ = $0 let hstring = try! HString("Windows.Web.Http.IHttpContent").detach() $1!.pointee = hstring return S_OK }, GetTrustLevel: { _ = $0 $1!.pointee = TrustLevel(rawValue: 0) return S_OK }, get_Headers: { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let value = __unwrapped__instance.headers value?.copyTo($1) return S_OK }, BufferAllAsync: { do { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let operation = try __unwrapped__instance.bufferAllAsync() let operationWrapper = UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_UINT64_UINT64Wrapper(operation) operationWrapper?.copyTo($1) return S_OK } catch { return failWith(err: E_FAIL) } }, ReadAsBufferAsync: { do { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let operation = try __unwrapped__instance.readAsBufferAsync() let operationWrapper = UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CStorage__CStreams__CIBuffer_UINT64Wrapper(operation) operationWrapper?.copyTo($1) return S_OK } catch { return failWith(err: E_FAIL) } }, ReadAsInputStreamAsync: { do { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let operation = try __unwrapped__instance.readAsInputStreamAsync() let operationWrapper = UWP.__x_ABI_C__FIAsyncOperationWithProgress_2___x_ABI_CWindows__CStorage__CStreams__CIInputStream_UINT64Wrapper(operation) operationWrapper?.copyTo($1) return S_OK } catch { return failWith(err: E_FAIL) } }, ReadAsStringAsync: { do { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let operation = try __unwrapped__instance.readAsStringAsync() let operationWrapper = UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_HSTRING_UINT64Wrapper(operation) operationWrapper?.copyTo($1) return S_OK } catch { return failWith(err: E_FAIL) } }, TryComputeLength: { do { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } var length: UInt64 = 0 let succeeded = try __unwrapped__instance.tryComputeLength(&length) $1?.initialize(to: length) $2?.initialize(to: .init(from: succeeded)) return S_OK } catch { return failWith(err: E_FAIL) } }, WriteToStreamAsync: { do { guard let __unwrapped__instance = IHttpContentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let outputStream: UWP.AnyIOutputStream? = __ABI_Windows_Storage_Streams.IOutputStreamWrapper.unwrapFrom(abi: ComPtr($1)) let operation = try __unwrapped__instance.writeToStreamAsync(outputStream) let operationWrapper = UWP.__x_ABI_C__FIAsyncOperationWithProgress_2_UINT64_UINT64Wrapper(operation) operationWrapper?.copyTo($2) return S_OK } catch { return failWith(err: E_FAIL) } } ) public typealias IHttpContentWrapper = InterfaceWrapperBase<__IMPL_Windows_Web_Http.IHttpContentBridge> public class IHttpGetBufferResult: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult } internal func get_ExtendedErrorImpl() throws -> HRESULT { var value: HRESULT = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendedError(pThis, &value)) } return value } internal func get_RequestMessageImpl() throws -> UWP.HttpRequestMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_ResponseMessageImpl() throws -> UWP.HttpResponseMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResponseMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_SucceededImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Succeeded(pThis, &value)) } return .init(from: value) } internal func get_ValueImpl() throws -> UWP.AnyIBuffer? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetBufferResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi)) } } return __ABI_Windows_Storage_Streams.IBufferWrapper.unwrapFrom(abi: value) } } public class IHttpGetInputStreamResult: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult } internal func get_ExtendedErrorImpl() throws -> HRESULT { var value: HRESULT = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendedError(pThis, &value)) } return value } internal func get_RequestMessageImpl() throws -> UWP.HttpRequestMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_ResponseMessageImpl() throws -> UWP.HttpResponseMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResponseMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_SucceededImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Succeeded(pThis, &value)) } return .init(from: value) } internal func get_ValueImpl() throws -> UWP.AnyIInputStream? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetInputStreamResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi)) } } return __ABI_Windows_Storage_Streams.IInputStreamWrapper.unwrapFrom(abi: value) } } public class IHttpGetStringResult: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult } internal func get_ExtendedErrorImpl() throws -> HRESULT { var value: HRESULT = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendedError(pThis, &value)) } return value } internal func get_RequestMessageImpl() throws -> UWP.HttpRequestMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_ResponseMessageImpl() throws -> UWP.HttpResponseMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResponseMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_SucceededImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Succeeded(pThis, &value)) } return .init(from: value) } internal func get_ValueImpl() throws -> String { var value: HSTRING? _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpGetStringResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &value)) } return .init(from: value) } } public class IHttpMethod: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethod } internal func get_MethodImpl() throws -> String { var value: HSTRING? _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethod.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Method(pThis, &value)) } return .init(from: value) } } public class IHttpMethodFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethodFactory } internal func CreateImpl(_ method: String) throws -> IHttpMethod { let (value) = try ComPtrs.initialize { valueAbi in let _method = try! HString(method) _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodFactory.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, _method.get(), &valueAbi)) } } return IHttpMethod(value!) } } public class IHttpMethodStatics: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics } internal func get_DeleteImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Delete(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_GetImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Get(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_HeadImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Head(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_OptionsImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Options(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_PatchImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Patch(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_PostImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Post(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_PutImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpMethodStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Put(pThis, &valueAbi)) } } return .from(abi: value) } } public class IHttpRequestMessage: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage } internal func get_ContentImpl() throws -> UWP.AnyIHttpContent? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) } } return __ABI_Windows_Web_Http.IHttpContentWrapper.unwrapFrom(abi: value) } internal func put_ContentImpl(_ value: UWP.AnyIHttpContent?) throws { let valueWrapper = __ABI_Windows_Web_Http.IHttpContentWrapper(value) let _value = try! valueWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, _value)) } } internal func get_HeadersImpl() throws -> UWP.HttpRequestHeaderCollection? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Headers(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_MethodImpl() throws -> UWP.HttpMethod? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Method(pThis, &valueAbi)) } } return .from(abi: value) } internal func put_MethodImpl(_ value: UWP.HttpMethod?) throws { _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_Method(pThis, RawPointer(value))) } } internal func get_PropertiesImpl() throws -> WindowsFoundation.AnyIMap? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Properties(pThis, &valueAbi)) } } return UWP.__x_ABI_C__FIMap_2_HSTRING_IInspectableWrapper.unwrapFrom(abi: value) } internal func get_RequestUriImpl() throws -> WindowsFoundation.Uri? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestUri(pThis, &valueAbi)) } } return .from(abi: value) } internal func put_RequestUriImpl(_ value: WindowsFoundation.Uri?) throws { _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequestUri(pThis, RawPointer(value))) } } internal func get_TransportInformationImpl() throws -> UWP.HttpTransportInformation? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransportInformation(pThis, &valueAbi)) } } return .from(abi: value) } } public class IHttpRequestMessageFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessageFactory } internal func CreateImpl(_ method: UWP.HttpMethod?, _ uri: WindowsFoundation.Uri?) throws -> IHttpRequestMessage { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessageFactory.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(method), RawPointer(uri), &valueAbi)) } } return IHttpRequestMessage(value!) } } public class IHttpRequestResult: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestResult } internal func get_ExtendedErrorImpl() throws -> HRESULT { var value: HRESULT = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendedError(pThis, &value)) } return value } internal func get_RequestMessageImpl() throws -> UWP.HttpRequestMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_ResponseMessageImpl() throws -> UWP.HttpResponseMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResponseMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_SucceededImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpRequestResult.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Succeeded(pThis, &value)) } return .init(from: value) } } public class IHttpResponseMessage: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage } internal func get_ContentImpl() throws -> UWP.AnyIHttpContent? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) } } return __ABI_Windows_Web_Http.IHttpContentWrapper.unwrapFrom(abi: value) } internal func put_ContentImpl(_ value: UWP.AnyIHttpContent?) throws { let valueWrapper = __ABI_Windows_Web_Http.IHttpContentWrapper(value) let _value = try! valueWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, _value)) } } internal func get_HeadersImpl() throws -> UWP.HttpResponseHeaderCollection? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Headers(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_IsSuccessStatusCodeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSuccessStatusCode(pThis, &value)) } return .init(from: value) } internal func get_ReasonPhraseImpl() throws -> String { var value: HSTRING? _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReasonPhrase(pThis, &value)) } return .init(from: value) } internal func put_ReasonPhraseImpl(_ value: String) throws { let _value = try! HString(value) _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_ReasonPhrase(pThis, _value.get())) } } internal func get_RequestMessageImpl() throws -> UWP.HttpRequestMessage? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestMessage(pThis, &valueAbi)) } } return .from(abi: value) } internal func put_RequestMessageImpl(_ value: UWP.HttpRequestMessage?) throws { _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequestMessage(pThis, RawPointer(value))) } } internal func get_SourceImpl() throws -> UWP.HttpResponseMessageSource { var value: __x_ABI_CWindows_CWeb_CHttp_CHttpResponseMessageSource = .init(0) _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &value)) } return value } internal func put_SourceImpl(_ value: UWP.HttpResponseMessageSource) throws { _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, value)) } } internal func get_StatusCodeImpl() throws -> UWP.HttpStatusCode { var value: __x_ABI_CWindows_CWeb_CHttp_CHttpStatusCode = .init(0) _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_StatusCode(pThis, &value)) } return value } internal func put_StatusCodeImpl(_ value: UWP.HttpStatusCode) throws { _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_StatusCode(pThis, value)) } } internal func get_VersionImpl() throws -> UWP.HttpVersion { var value: __x_ABI_CWindows_CWeb_CHttp_CHttpVersion = .init(0) _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Version(pThis, &value)) } return value } internal func put_VersionImpl(_ value: UWP.HttpVersion) throws { _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_Version(pThis, value)) } } internal func EnsureSuccessStatusCodeImpl() throws -> UWP.HttpResponseMessage? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessage.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.EnsureSuccessStatusCode(pThis, &resultAbi)) } } return .from(abi: result) } } public class IHttpResponseMessageFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessageFactory } internal func CreateImpl(_ statusCode: UWP.HttpStatusCode) throws -> IHttpResponseMessage { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpResponseMessageFactory.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, statusCode, &valueAbi)) } } return IHttpResponseMessage(value!) } } public class IHttpTransportInformation: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CWeb_CHttp_CIHttpTransportInformation } internal func get_ServerCertificateImpl() throws -> UWP.Certificate? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpTransportInformation.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ServerCertificate(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_ServerCertificateErrorSeverityImpl() throws -> UWP.SocketSslErrorSeverity { var value: __x_ABI_CWindows_CNetworking_CSockets_CSocketSslErrorSeverity = .init(0) _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpTransportInformation.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ServerCertificateErrorSeverity(pThis, &value)) } return value } internal func get_ServerCertificateErrorsImpl() throws -> WindowsFoundation.AnyIVectorView? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpTransportInformation.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ServerCertificateErrors(pThis, &valueAbi)) } } return UWP.__x_ABI_C__FIVectorView_1___x_ABI_CWindows__CSecurity__CCryptography__CCertificates__CChainValidationResultWrapper.unwrapFrom(abi: value) } internal func get_ServerIntermediateCertificatesImpl() throws -> WindowsFoundation.AnyIVectorView? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CWindows_CWeb_CHttp_CIHttpTransportInformation.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ServerIntermediateCertificates(pThis, &valueAbi)) } } return UWP.__x_ABI_C__FIVectorView_1___x_ABI_CWindows__CSecurity__CCryptography__CCertificates__CCertificateWrapper.unwrapFrom(abi: value) } } public class _ABI_HttpProgress { public var val: __x_ABI_CWindows_CWeb_CHttp_CHttpProgress = .init() public init() { } public init(from swift: UWP.HttpProgress) { val.Stage = swift.stage val.BytesSent = swift.bytesSent let TotalBytesToSendWrapper = UWP.__x_ABI_C__FIReference_1_UINT64Wrapper(swift.totalBytesToSend) TotalBytesToSendWrapper?.copyTo(&val.TotalBytesToSend) val.BytesReceived = swift.bytesReceived let TotalBytesToReceiveWrapper = UWP.__x_ABI_C__FIReference_1_UINT64Wrapper(swift.totalBytesToReceive) TotalBytesToReceiveWrapper?.copyTo(&val.TotalBytesToReceive) val.Retries = swift.retries } public func detach() -> __x_ABI_CWindows_CWeb_CHttp_CHttpProgress { let result = val val.TotalBytesToSend = nil val.TotalBytesToReceive = nil return result } deinit { _ = val.TotalBytesToSend?.pointee.lpVtbl.pointee.Release(val.TotalBytesToSend) _ = val.TotalBytesToReceive?.pointee.lpVtbl.pointee.Release(val.TotalBytesToReceive) } } }