mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
d66798b03e
* Core - Add IURLRequest #1721 Add IURLRequest, IURLRequestClient, and GetURLRequest to IFrame * Rename URL classes to Url, add xmldoc and licenses * Add UrlRequestClient to CefSharp.Example, more minor cleanup * Getters * Rebase tweaks * Fix filenames, remove unused * Use UnmanagedMemoryStream instead of byte array for IUrlRequestClient.OnDownloadData
30 lines
676 B
C++
30 lines
676 B
C++
// Copyright © 2019 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "Stdafx.h"
|
|
#include "CefUrlRequestWrapper.h"
|
|
#include "CefResponseWrapper.h"
|
|
|
|
bool CefUrlRequestWrapper::ResponseWasCached::get()
|
|
{
|
|
ThrowIfDisposed();
|
|
|
|
return _urlRequest->ResponseWasCached();
|
|
}
|
|
|
|
IResponse^ CefUrlRequestWrapper::Response::get()
|
|
{
|
|
ThrowIfDisposed();
|
|
|
|
return gcnew CefResponseWrapper(_urlRequest->GetResponse());
|
|
}
|
|
|
|
UrlRequestStatus CefUrlRequestWrapper::RequestStatus::get()
|
|
{
|
|
ThrowIfDisposed();
|
|
|
|
return (UrlRequestStatus)_urlRequest->GetRequestStatus();
|
|
}
|
|
|