summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-04-03 15:17:04 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2017-04-03 15:17:04 +0200
commit9543025e88d3d0fe298e95330b8d38802da50cc6 (patch)
treee96e1a10a4ba6cba5cade8cd959b3894b8e67cd8 /lib/api/entities.rb
parent2faf955c241ce7e99111f8fd0cae2e7ab6167e5a (diff)
downloadgitlab-ce-9543025e88d3d0fe298e95330b8d38802da50cc6.tar.gz
Introduce "polling_interval_multiplier" as application setting
Implement module for setting "Poll-Interval" response header. Return 429 in ETag caching middleware when polling is disabled.
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 5954aea8041..01ae2dbd583 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -581,6 +581,7 @@ module API
expose :plantuml_enabled
expose :plantuml_url
expose :terminal_max_session_time
+ expose :polling_interval_multiplier
end
class Release < Grape::Entity