IResponse - Add Charset property

Maps to CefResponse::GetCharset and CefResponse::SetCharset
This commit is contained in:
amaitland
2019-06-18 17:46:07 +10:00
committed by Alex Maitland
parent 3f820e4513
commit da98060300
2 changed files with 21 additions and 0 deletions
@@ -38,6 +38,22 @@ namespace CefSharp
}
public:
virtual property String^ Charset
{
String^ get()
{
ThrowIfDisposed();
return StringUtils::ToClr(_response->GetCharset());
}
void set(String^ val)
{
ThrowIfDisposed();
_response->SetCharset(StringUtils::ToNative(val));
}
}
virtual property bool IsReadOnly
{
bool get()
+5
View File
@@ -12,6 +12,11 @@ namespace CefSharp
/// </summary>
public interface IResponse : IDisposable
{
/// <summary>
/// Get/Set the response charset.
/// </summary>
string Charset { get; set; }
/// <summary>
/// MimeType
/// </summary>