class Rpush::Daemon::Webpush::Request

Webpush::Request handles all the encryption / signing. We just override perform to inject the http instance that is managed by Rpush.

Public Instance Methods

perform(http) click to toggle source
# File lib/rpush/daemon/webpush/delivery.rb, line 14
def perform(http)
  req = Net::HTTP::Post.new(uri.request_uri, headers)
  req.body = body
  http.request(uri, req)
end