共用方式為


ChaosHandler.Create429TooManyRequestsResponse(TimeSpan) Method

Definition

Create a HTTP status 429 response message

public static System.Net.Http.HttpResponseMessage Create429TooManyRequestsResponse (TimeSpan retry);
static member Create429TooManyRequestsResponse : TimeSpan -> System.Net.Http.HttpResponseMessage
Public Shared Function Create429TooManyRequestsResponse (retry As TimeSpan) As HttpResponseMessage

Parameters

retry
TimeSpan

TimeSpan for retry condition header value

Returns

A HttpResponseMessage object simulating a 429 response

Applies to