class Honeybadger::HttpPayload

Overview

An HttpPayload renders request metadata in addition to the Exception data provided by Payload, and should be used for errors which happen during an HTTP::Server request cycle.

Defined in:

honeybadger/http_payload.cr

Constructors

Instance Method Summary

Instance methods inherited from class Honeybadger::Payload

context_json(builder) context_json, error_class : String | Nil error_class, error_class=(error_class : String | Nil) error_class=, error_message : String | Nil error_message, error_message=(error_message : String | Nil) error_message=, request_json(builder) request_json, set_context(hash_context : Hash) : Nil set_context, to_json(builder : JSON::Builder) to_json

Constructor methods inherited from class Honeybadger::Payload

new(exception : Exception)
new(message : String, *, error_class : String | Nil = nil)
new

Constructor Detail

def self.new(exception : Exception, http_request : HTTP::Request) #

[View source]

Instance Method Detail

def exception : Exception? #

:inherit:


[View source]
def http_request : HTTP::Request #

The request in which the exception was triggered.


[View source]
def request_json(builder) #

Renders the "request" stanza of the json payload.


[View source]