public static IObservable <WWW> PostWWW(string url, WWWForm content, Dictionary <string, string> headers, IProgress <float> progress = null) { Dictionary <string, string> contentHeaders = content.get_headers(); return(Observable.FromCoroutine <WWW>((IObserver <WWW> observer, CancellationToken cancellation) => ObservableWWW.Fetch(new WWW(url, content.get_data(), ObservableWWW.MergeHash(contentHeaders, headers)), observer, progress, cancellation))); }
public static IObservable <WWW> PostWWW(string url, byte[] postData, Dictionary <string, string> headers, IProgress <float> progress = null) { return(Observable.FromCoroutine <WWW>((IObserver <WWW> observer, CancellationToken cancellation) => ObservableWWW.Fetch(new WWW(url, postData, headers), observer, progress, cancellation))); }
public static IObservable <WWW> PostWWW(string url, WWWForm content, IProgress <float> progress = null) { return(Observable.FromCoroutine <WWW>((IObserver <WWW> observer, CancellationToken cancellation) => ObservableWWW.Fetch(new WWW(url, content), observer, progress, cancellation))); }
public static IObservable <WWW> GetWWW(string url, Dictionary <string, string> headers = null, IProgress <float> progress = null) { return(Observable.FromCoroutine <WWW>((IObserver <WWW> observer, CancellationToken cancellation) => ObservableWWW.Fetch(new WWW(url, null, headers ?? new Dictionary <string, string>()), observer, progress, cancellation))); }