abstract class Athena::Framework::Spec::AbstractBrowser
inherits Reference
#
Simulates a browser to make requests to some destination.
Note
Currently just acts as a client to make HTTP requests, sending the cookies it received with subsequent requests. This type exists to allow for introduction of other functionality in the future.
Direct known subclasses
Athena::Framework::Spec::HTTPBrowser
Methods#
#cookie_jar : ATH::Spec::CookieJar#
Returns the ATH::Spec::CookieJar storing the cookies received from previous requests, which are sent with subsequent requests.
#request(method : String, path : String, headers : ::HTTP::Headers, body : String | Bytes | IO | Nil) : ::HTTP::Server::Response#
Makes an HTTP request with the provided method, at the provided path, with the provided body and/or headers and returns the resulting response.
#request(request : AHTTP::Request | ::HTTP::Request) : ::HTTP::Server::Response#
Makes an HTTP request with the provided request, returning the resulting response.