summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-03-21 01:39:00 +0300
committerValentin Bartenev <vbart@nginx.com>2020-03-21 01:39:00 +0300
commitc63b498f9416d26c1288a86ae4fc0b6007a16142 (patch)
tree7fe911579cc7f3aac50a0a649236195127cf767e /src/nxt_http.h
parent35d6f84426cfaa27587456a8ebb81b13f60e697a (diff)
downloadunit-c63b498f9416d26c1288a86ae4fc0b6007a16142.tar.gz
unit-c63b498f9416d26c1288a86ae4fc0b6007a16142.tar.bz2
Implemented "location" option for "return" action.
This allows to specify redirects: { "action": { "return": 301, "location": "https://www.example.com/" } }
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index a86b77f9..638affc8 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -23,6 +23,8 @@ typedef enum {
NXT_HTTP_FOUND = 302,
NXT_HTTP_SEE_OTHER = 303,
NXT_HTTP_NOT_MODIFIED = 304,
+ NXT_HTTP_TEMPORARY_REDIRECT = 307,
+ NXT_HTTP_PERMANENT_REDIRECT = 308,
NXT_HTTP_BAD_REQUEST = 400,
NXT_HTTP_FORBIDDEN = 403,