Module: HTTPX::Plugins::PushPromise

Defined in:
lib/httpx/plugins/push_promise.rb

Overview

This plugin adds support for HTTP/2 Push responses.

In order to benefit from this, requests are sent one at a time, so that no push responses are received after corresponding request has been sent.

gitlab.com/os85/httpx/wikis/Server-Push

Defined Under Namespace

Modules: InstanceMethods, ResponseMethods

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Object



14
15
16
17
# File 'lib/httpx/plugins/push_promise.rb', line 14

def self.extra_options(options)
  options.merge(http2_settings: { settings_enable_push: 1 },
                max_concurrent_requests: 1)
end