module HTTPX::Plugins::PushPromise

  1. lib/httpx/plugins/push_promise.rb

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

Methods

Public Class

  1. extra_options

Public Class methods

extra_options(options)
[show source]
   # File lib/httpx/plugins/push_promise.rb
14 def self.extra_options(options)
15   options.merge(http2_settings: { settings_enable_push: 1 },
16                 max_concurrent_requests: 1)
17 end