mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
IResponse - Add Charset property
Maps to CefResponse::GetCharset and CefResponse::SetCharset
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user