internal void InternalSetMethod(UnityWebRequestMethod methodType) { if (!isModifiable) { throw new InvalidOperationException("UnityWebRequest has already been sent and its request method can no longer be altered"); } UnityWebRequestError ret = SetMethod(methodType); if (ret != UnityWebRequestError.OK) { throw new InvalidOperationException(UnityWebRequest.GetWebErrorString(ret)); } }
internal void InternalSetMethod(UnityWebRequestMethod methodType) { _method = methodType; }
internal extern void InternalSetMethod(UnityWebRequestMethod methodType);
private extern UnityWebRequestError SetMethod(UnityWebRequestMethod methodType);
public WWW(string url, WWWForm form) { _url = url; _method = UnityWebRequestMethod.Post; SendRequest(System.Text.Encoding.Default.GetString(form.data)); }
internal extern void InternalSetMethod(UnityWebRequestMethod methodType);