Ejemplo n.º 1
0
 private static extern IntPtr nim_http_create_request([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string url,
                                                      IntPtr post_body, int post_body_size, NimHttpDef.ResponseCb response_cb, IntPtr user_data);
Ejemplo n.º 2
0
 /// <summary>
 /// 创建任务
 /// </summary>
 /// <param name="url">资源地址</param>
 /// <param name="postBody">上传内容</param>
 /// <param name="postBodySize">上传内容大小</param>
 /// <param name="responseCb">结束回调,响应实体内容</param>
 /// <param name="userData">自定义数据</param>
 /// <returns>http任务句柄</returns>
 public static IntPtr CreateRequest(string url, IntPtr postBody, int postBodySize, NimHttpDef.ResponseCb responseCb, IntPtr userData)
 {
     return(nim_http_create_request(url, postBody, postBodySize, responseCb, userData));
 }