共用方式為


ChaosHandler.Create504GatewayTimeoutResponse(TimeSpan) Method

Definition

Create a HTTP status 504 response message

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

Parameters

retry
TimeSpan

TimeSpan for retry condition header value

Returns

A HttpResponseMessage object simulating a 504 response

Applies to