You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Flurl.CodeGen/Metadata.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -139,8 +139,8 @@ public static IEnumerable<ExtensionMethod> GetRequestReturningExtensions(MethodA
139
139
.AddArg("seconds","int","Seconds to wait before the request times out.");
140
140
yieldreturnCreate("AllowHttpStatus","Creates a new FlurlRequest and adds a pattern representing an HTTP status code or range of codes which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.")
yieldreturnCreate("AllowHttpStatus","Creates a new FlurlRequest and adds an HttpStatusCode which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.")
143
-
.AddArg("statusCodes","params HttpStatusCode[]","The HttpStatusCode(s) to allow.");
142
+
yieldreturnCreate("AllowHttpStatus","Creates a new FlurlRequest and adds one or more response status codes which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.")
143
+
.AddArg("statusCodes","params int[]","One or more response status codes that, when received, will not cause an exception to be thrown.");
144
144
yieldreturnCreate("AllowAnyHttpStatus","Creates a new FlurlRequest and configures it to allow any returned HTTP status without throwing a FlurlHttpException.");
145
145
yieldreturnCreate("WithAutoRedirect","Creates a new FlurlRequest and configures whether redirects are automatically followed.")
146
146
.AddArg("enabled","bool","true if Flurl should automatically send a new request to the redirect URL, false if it should not.");
/// Creates a new FlurlRequest and adds an HttpStatusCode which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.
686
+
/// Creates a new FlurlRequest and adds one or more response status codes which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.
687
687
/// </summary>
688
688
/// <param name="url">This Flurl.Url.</param>
689
-
/// <param name="statusCodes">The HttpStatusCode(s) to allow.</param>
689
+
/// <param name="statusCodes">One or more response status codes that, when received, will not cause an exception to be thrown.</param>
/// Creates a new FlurlRequest and adds an HttpStatusCode which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.
1205
+
/// Creates a new FlurlRequest and adds one or more response status codes which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.
1206
1206
/// </summary>
1207
1207
/// <param name="url">This URL.</param>
1208
-
/// <param name="statusCodes">The HttpStatusCode(s) to allow.</param>
1208
+
/// <param name="statusCodes">One or more response status codes that, when received, will not cause an exception to be thrown.</param>
@@ -1721,12 +1721,12 @@ public static IFlurlRequest AllowHttpStatus(this Uri uri, string pattern) {
1721
1721
}
1722
1722
1723
1723
/// <summary>
1724
-
/// Creates a new FlurlRequest and adds an HttpStatusCode which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.
1724
+
/// Creates a new FlurlRequest and adds one or more response status codes which (in addition to 2xx) will NOT result in a FlurlHttpException being thrown.
1725
1725
/// </summary>
1726
1726
/// <param name="uri">This System.Uri.</param>
1727
-
/// <param name="statusCodes">The HttpStatusCode(s) to allow.</param>
1727
+
/// <param name="statusCodes">One or more response status codes that, when received, will not cause an exception to be thrown.</param>
0 commit comments