forked from cefsharp/CefSharp
/
Request.h
30 lines (25 loc) · 921 Bytes
/
Request.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "stdafx.h"
#pragma once
using namespace System;
using namespace System::Collections::Generic;
namespace CefSharp
{
public interface class IRequest
{
property String^ Url { String^ get(); void set(String^ url); }
property String^ Method { String^ get(); }
IDictionary<String^, String^>^ GetHeaders();
void SetHeaders(IDictionary<String^, String^>^ headers);
};
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 IDictionary<String^, String^>^ GetHeaders();
virtual void SetHeaders(IDictionary<String^, String^>^ headers);
};
}