pub unsafe extern "C" fn OH_ArkWebResponse_SetHeaderByName(
response: *mut ArkWeb_Response,
name: *const c_char,
value: *const c_char,
overwrite: bool,
) -> i32Available on crate features
api-11 and api-12 only.Expand description
Set a header to ArkWeb_Response.
§Arguments
-
response- The ArkWeb_Response. -
name- The name of the header. -
value- The value of the header. -
overwirte- If true will overwrite the exsits header, if false otherwise.
§Returns
- [
ARKWEB_NET_OK] 0 - Success. [ARKWEB_INVALID_PARAM] 17100101 - Invalid param.
Required System Capabilities: SystemCapability.Web.Webview.Core
Available since API-level: 12