PreparedRequestExtensionsAllowHttpStatus Method |
Allow a specific set of HTTP status codes.
Namespace: Flurl.HttpAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public static PreparedRequest AllowHttpStatus(
this PreparedRequest request,
params HttpStatusCode[] statusCodes
)
<ExtensionAttribute>
Public Shared Function AllowHttpStatus (
request As PreparedRequest,
ParamArray statusCodes As HttpStatusCode()
) As PreparedRequest
public:
[ExtensionAttribute]
static PreparedRequest^ AllowHttpStatus(
PreparedRequest^ request,
... array<HttpStatusCode>^ statusCodes
)
[<ExtensionAttribute>]
static member AllowHttpStatus :
request : PreparedRequest *
statusCodes : HttpStatusCode[] -> PreparedRequest
Parameters
- request
- Type: PreparedRequest
The prepared request. - statusCodes
- Type: System.NetHttpStatusCode
The allowed status codes.
Return Value
Type:
PreparedRequestUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PreparedRequest. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Version Information openstack.net
Supported in: 1.6
See Also