public UnityWebRequestWrapper(string url, string method, DownloadHandlerBufferWrapper downloadHandler, UploadHandlerRawWrapper uploadHandler) { if (downloadHandler == null) { throw new ArgumentNullException("downloadHandler"); } if (uploadHandler == null) { throw new ArgumentNullException("uploadHandler"); } unityWebRequestInstance = Activator.CreateInstance(unityWebRequestType, url, method, downloadHandler.Instance, uploadHandler.Instance); }
/// <summary> /// Create an instance of UnityWebRequestWrapper /// </summary> /// <param name="url">Url of the request</param> /// <param name="method">The HTTP Methods</param> /// <param name="downloadHandler">Instance of <see cref="DownloadHandlerBufferWrapper"/></param> /// <param name="uploadHandler">Instance of <see cref="UploadHandlerRawWrapper"/></param> public UnityWebRequestWrapper(string url, string method, DownloadHandlerBufferWrapper downloadHandler, UploadHandlerRawWrapper uploadHandler) { if (downloadHandler == null) throw new ArgumentNullException("downloadHandler"); if (uploadHandler == null) throw new ArgumentNullException("uploadHandler"); unityWebRequestInstance = Activator.CreateInstance(unityWebRequestType, url, method, downloadHandler.Instance, uploadHandler.Instance); }