Skip to content

Commit

Permalink
docs: added more info for LUA filter's setUpstreamOverrideHost() (#37348
Browse files Browse the repository at this point in the history
)

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
  • Loading branch information
agrawroh authored Nov 25, 2024
1 parent c3142e6 commit e4cbfee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/root/configuration/http/http_filters/lua_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,12 @@ set to true, Envoy responds with a 503 Service Unavailable error.

The function takes two arguments:

* ``host`` (string): The host address to be used for upstream requests.
* ``strict`` (boolean, optional): If set to true, the request is strictly routed to the overridden host. If the host is
unavailable, Envoy returns a 503 error. Defaults to false.
* ``host`` (string): The upstream host address to use for the request. This must be a valid IP address; otherwise, the
Lua script will throw an error.
* ``strict`` (boolean, optional): Determines whether the HTTP request must be strictly routed to the requested
destination. When set to ``true``, if the requested destination is unavailable, Envoy will return a 503 status code.
The default value is ``false``, which allows Envoy to fall back to its load balancing mechanism. In this case, if the
requested destination is not found, the request will be routed according to the load balancing algorithm.

Example:

Expand Down

0 comments on commit e4cbfee

Please sign in to comment.