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));
            }
        }
Ejemplo n.º 2
0
 internal void InternalSetMethod(UnityWebRequestMethod methodType)
 {
     _method = methodType;
 }
Ejemplo n.º 3
0
 internal extern void InternalSetMethod(UnityWebRequestMethod methodType);
 private extern UnityWebRequestError SetMethod(UnityWebRequestMethod methodType);
Ejemplo n.º 5
0
 public WWW(string url, WWWForm form)
 {
     _url    = url;
     _method = UnityWebRequestMethod.Post;
     SendRequest(System.Text.Encoding.Default.GetString(form.data));
 }
Ejemplo n.º 6
0
 internal extern void InternalSetMethod(UnityWebRequestMethod methodType);