Files
cefsharp/CefSharp/Request.h
T
2013-07-18 21:14:11 +03:00

31 lines
909 B
C++

// Copyright © 2010-2013 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "IRequest.h"
#include "MCefRefPtr.h"
using namespace System;
using namespace System::Collections::Generic;
namespace CefSharp
{
ref class CefRequestWrapper : public IRequest
{
MCefRefPtr<CefRequest> _wrappedRequest;
internal:
CefRequestWrapper(CefRefPtr<CefRequest> cefRequest) : _wrappedRequest(cefRequest) {}
public:
virtual property String^ Url { String^ get(); void set(String^ url); }
virtual property String^ Method { String^ get(); }
virtual property String^ Body { String^ get(); }
virtual IDictionary<String^, String^>^ GetHeaders();
virtual void SetHeaders(IDictionary<String^, String^>^ headers);
};
}