Skip to content

Commit e000ce5

Browse files
Merge pull request #221999 from tomkerkhove/patch-8
docs(apim): Add missing timeout on send-one-way-request
2 parents b25387a + 8bb92a7 commit e000ce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/api-management/api-management-advanced-policies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ This sample policy shows an example of using the `send-one-way-request` policy t
716716
```xml
717717
<choose>
718718
<when condition="@(context.Response.StatusCode >= 500)">
719-
<send-one-way-request mode="new">
719+
<send-one-way-request mode="new" timeout="20">
720720
<set-url>https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX</set-url>
721721
<set-method>POST</set-method>
722722
<set-body>@{
@@ -756,6 +756,7 @@ This sample policy shows an example of using the `send-one-way-request` policy t
756756
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
757757
| mode="string" | Determines whether this is a new request or a copy of the current request. In outbound mode, mode=copy does not initialize the request body. | No | New |
758758
| name | Specifies the name of the header to be set. | Yes | N/A |
759+
| timeout="integer" | The timeout interval in seconds before the call to the URL fails. | No | 60 |
759760
| exists-action | Specifies what action to take when the header is already specified. This attribute must have one of the following values.<br /><br /> - override - replaces the value of the existing header.<br />- skip - does not replace the existing header value.<br />- append - appends the value to the existing header value.<br />- delete - removes the header from the request.<br /><br /> When set to `override` enlisting multiple entries with the same name results in the header being set according to all entries (which will be listed multiple times); only listed values will be set in the result. | No | override |
760761

761762
### Usage

0 commit comments

Comments
 (0)