```ruby
module ExceptionNotifier
  class WebhookNotifier

    def initialize(options)
      @default_options = options
    end

    def call(exception, options={})
      env = options[:env]

      options = options.reverse_merge(@default_options)
      url = options.delete(:url)
      http_method = options.delete(:http_method) || :post

      request = ActionDispatch::Request.new(env)

      options[:body] ||= {}
      options[:body][:exception] = {:error_class => exception.class.to_s,
                                    :message => exception.message.inspect,
                                    :backtrace => exception.backtrace,
                                    :cookies => request.cookies.inspect,
                                    :url => request.original_url,
                                    :ip_address => request.ip,
                                    :environment => env.inspect,
                                    :controller => env['action_controller.instance'] || MissingController.new,
                                    :session => env['action_dispatch.request.unsigned_session_cookie'].inspect,
                                    :parameters => env['action_dispatch.request.parameters'].inspect,
                                    :data => (env['exception_notifier.exception_data'] || {}).merge(options[:data] || {}) 
                                  }

      HTTParty.send(http_method, url, options)
    end
  end
end
```

Add support for background notifications in webhook call method
user
```ruby
module ExceptionNotifier
  class WebhookNotifier

    def initialize(options)
      @default_options = options
    end

    def call(exception, options={})
      env = options[:env]

      options = options.reverse_merge(@default_options)
      url = options.delete(:url)
      http_method = options.delete(:http_method) || :post
      
      unless env.nil? 
        request = ActionDispatch::Request.new(env)

        request_items = {:cookies => request.cookies.inspect,
                         :url => request.original_url,
                         :ip_address => request.ip,
                         :environment => env.inspect,
                         :controller => env['action_controller.instance'] || MissingController.new,
                         :session => env['action_dispatch.request.unsigned_session_cookie'].inspect,
                         :parameters => env['action_dispatch.request.parameters'].inspect}
      end

      options[:body] ||= {}
      options[:body][:exception] = {:error_class => exception.class.to_s,
                                    :message => exception.message.inspect,
                                    :backtrace => exception.backtrace,
                                    :data => (env['exception_notifier.exception_data'] || {}).merge(options[:data] || {}),
                                    :request => (request_items || {})
                                  }

      HTTParty.send(http_method, url, options)
    end
  end
end```
assistant