forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsyncHTTPClient.bindings.cs
More file actions
30 lines (22 loc) · 1.11 KB
/
Copy pathAsyncHTTPClient.bindings.cs
File metadata and controls
30 lines (22 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using UnityEngine;
using UnityEngine.Bindings;
namespace UnityEditor
{
[NativeHeader("Editor/Mono/AsyncHTTPClient.bindings.h")]
internal partial class AsyncHTTPClient
{
private delegate void RequestProgressCallback(AsyncHTTPClient.State status, int downloaded, int totalSize);
private delegate void RequestDoneCallback(AsyncHTTPClient.State status, int httpStatus);
private static extern IntPtr SubmitClientRequest(string tag, string url, string[] headers, string method, string data, RequestDoneCallback doneDelegate, RequestProgressCallback progressDelegate = null);
private static extern byte[] GetBytesByHandle(IntPtr handle);
private static extern Texture2D GetTextureByHandle(IntPtr handle);
public static extern void AbortByTag(string tag);
private static extern void AbortByHandle(IntPtr handle);
[FreeFunction]
public static extern void CurlRequestCheck();
}
}