This repository has been archived on 2025-03-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
xerobrowser/packages/CefSharp.Common.87.1.132/src/CefSharp.Core.Runtime/UrlRequest.cpp
2023-02-20 23:24:10 +13:00

35 lines
820 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 "UrlRequest.h"
#include "Internals\CefResponseWrapper.h"
namespace CefSharp
{
namespace Core
{
bool UrlRequest::ResponseWasCached::get()
{
ThrowIfDisposed();
return _urlRequest->ResponseWasCached();
}
IResponse^ UrlRequest::Response::get()
{
ThrowIfDisposed();
return gcnew CefResponseWrapper(_urlRequest->GetResponse());
}
UrlRequestStatus UrlRequest::RequestStatus::get()
{
ThrowIfDisposed();
return (UrlRequestStatus)_urlRequest->GetRequestStatus();
}
}
}