コード例 #1
0
        /// <summary>
        /// Set all values at one time.
        /// </summary>
        public void Set(string url, string method, CefPostData postData, CefStringMultiMap headerMap)
        {
            // TODO: check args

            fixed (char* url_str = url)
            fixed (char* method_str = method)
            {
                var n_url = new cef_string_t(url_str, url != null ? url.Length : 0);
                var n_method = new cef_string_t(method_str, method != null ? method.Length : 0);

                cef_request_t.invoke_set(this.ptr, &n_url, &n_method, postData.GetNativePointerAndAddRef(), headerMap.Handle);
            }
        }
コード例 #2
0
        /// <summary>
        /// Set all values at one time.
        /// </summary>
        public void Set(string url, string method, CefPostData postData, CefStringMultiMap headerMap)
        {
            // TODO: check args

            fixed(char *url_str = url)
            fixed(char *method_str = method)
            {
                var n_url    = new cef_string_t(url_str, url != null ? url.Length : 0);
                var n_method = new cef_string_t(method_str, method != null ? method.Length : 0);

                cef_request_t.invoke_set(this.ptr, &n_url, &n_method, postData.GetNativePointerAndAddRef(), headerMap.Handle);
            }
        }
コード例 #3
0
 /// <summary>
 /// Set the post data.
 /// </summary>
 public void SetPostData(CefPostData postData)
 {
     cef_request_t.invoke_set_post_data(this.ptr, postData.GetNativePointerAndAddRef());
 }
コード例 #4
0
 /// <summary>
 /// Set the post data.
 /// </summary>
 public void SetPostData(CefPostData postData)
 {
     cef_request_t.invoke_set_post_data(this.ptr, postData.GetNativePointerAndAddRef());
 }
コード例 #5
0
 /// <summary>
 /// Get the post data.
 /// </summary>
 public CefPostData GetPostData()
 {
     return(CefPostData.From(
                cef_request_t.invoke_get_post_data(this.ptr)
                ));
 }
コード例 #6
0
 /// <summary>
 /// Create a new CefPostData object.
 /// </summary>
 public static CefPostData Create()
 {
     return(CefPostData.From(
                NativeMethods.cef_post_data_create()
                ));
 }