-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose fault.http.abort.http_status setting via HTTP header #10294
Changes from all commits
ec89763
d9caef6
9b28c7d
31126b4
e1cf997
c534968
386cf81
ec19b1a
e8657fe
49042c3
239c406
a63b408
d20a624
bd32f55
e3c7ca6
3cd511b
a43c6ef
17ed854
559465e
93a6332
3483611
28e4cf8
ac46ced
58e21f7
97ab5b3
18f9152
f337341
224fa21
109531e
4ba49b7
08ecf36
2228f5f
60abf18
87c61e8
7db79dc
0c21567
deec559
5d62ece
1c1420f
e647685
95941c0
26651ab
651ba63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would call this
header_error
. The abort is still controlled by the normal mechanisms, it's just the nature of the error is expressed in the header.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change it but I think that
header_abort
is a better name because:header_error
can be in theory used to inject status codes such as200
or204
that are not errors.header_abort
follows a naming scheme used byheader_limit
andheader_delay
fields.header_error
would've been a better choice ifheader_limit
washeader_kbs
andheader_delay
washeader_duration
.Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would be inclined to stick with
header_abort
for the reasons that @Augustyniak outlines. @htuch WDYT?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.