File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ public HttpRequest Send()
104104 return this ;
105105 }
106106
107+ public HttpRequest SetRedirectLimit ( int redirectLimit )
108+ {
109+ UnityWebRequest . redirectLimit = redirectLimit ;
110+ return this ;
111+ }
112+
107113 public void Abort ( )
108114 {
109115 Http . Instance . Abort ( this ) ;
Original file line number Diff line number Diff line change @@ -73,8 +73,12 @@ All these methods return the HttpRequest instance.
7373* ` OnUploadProgress(Action<float> progress) `
7474* ` OnDownloadProgress(Action<float> progress) `
7575##### Configure
76+ * ` SetRedirectLimit(int redirectLimit) `
7677* ` SetTimeout(int duration) `
7778
79+ Redirect limit subject to Unity's documentation.
80+ * [ Redirect Limit Documentation] ( https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest-redirectLimit.html )
81+
7882Progress events will invoke each time the progress value has increased, they are subject to Unity's documentation.
7983* [ Upload Progress Documentation] ( https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest-uploadProgress.html )
8084* [ Download Progress Documentation] ( https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest-downloadProgress.html )
You can’t perform that action at this time.
0 commit comments