Files
cefsharp/CefSharp.Core/UrlRequest.cpp
T
2019-11-23 15:11:14 +10:00

30 lines
646 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"
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();
}