Skip to content

Commit e5a556e

Browse files
adding timeout
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
1 parent e5fee69 commit e5a556e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

guideline/dynamic-context-provider.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ An OFREP server provider implementation must, at the time of creation, accept at
1515
This must be the base of the URL pointing before the `/ofrep` namespace of the API.
1616
- In the constructor, the provider should check if the `baseURL` is a valid URL and return an error if the URL is invalid.
1717
- `headers`: The headers to use when calling the OFREP endpoints *(e.g.:`Authorization`, Custom headers, etc ...)*.
18+
- `timeout`: The time to wait before abording the HTTP request. A 10 seconds default should be taken if the option is not provided.
1819

1920
## Evaluation
2021
When an evaluation function is called the server provider will make a `POST` request to the `/ofrep/v1/evaluate/flags/{key}` endpoint *(where `{key}` is the flag name), with the evaluation context in the body.

0 commit comments

Comments
 (0)