-result
-_WebImpl::AddHttpHeaderField(const String& name, const String& value)
-{
- SysTryReturnResult(NID_WEB_CTRL, name.GetLength() > 0, E_INVALID_ARG, "Invalid argument(s) is used. name key is missing.");
-
- std::unique_ptr<char[]> pName(_StringConverter::CopyToCharArrayN(name));
- SysTryReturn(NID_WEB_CTRL, pName.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
-
- std::unique_ptr<char[]> pValue(_StringConverter::CopyToCharArrayN(value));
-
- ewk_view_custom_header_add(__pWebCore->GetWebNativeNode(), pName.get(), pValue.get());
-
- return E_SUCCESS;
-}
-
-
-result
-_WebImpl::RemoveHttpHeaderField(const String& name)
-{
- SysTryReturnResult(NID_WEB_CTRL, name.GetLength() > 0, E_INVALID_ARG, "Invalid argument(s) is used. name key is missing.");
-
- std::unique_ptr<char[]> pName(_StringConverter::CopyToCharArrayN(name));
- SysTryReturn(NID_WEB_CTRL, pName.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
-
- ewk_view_custom_header_remove(__pWebCore->GetWebNativeNode(), pName.get());
-
- return E_SUCCESS;
-}
-
-