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
32 lines (23 loc) · 1.18 KB
/
AsyncHTTPClient.bindings.cs
File metadata and controls
32 lines (23 loc) · 1.18 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
31
32
// 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);
private static extern string[] GetHeadersByHandle(IntPtr handle);
public static extern void AbortByTag(string tag);
private static extern void AbortByHandle(IntPtr handle);
[FreeFunction]
public static extern void CurlRequestCheck();
}
}