abstract struct Athena::Routing::Spec::AbstractBrowser
- Athena::Routing::Spec::AbstractBrowser
- Struct
- Value
- Object
Overview
Simulates a browser to make requests to some destination.
NOTE Currently just acts as a client to make HTTP requests. This type exists to allow for introduction of other functionality in the future.
Direct Known Subclasses
Defined in:
spec.crConstructors
Instance Method Summary
- #initialize
-
#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.
Constructor Detail
Instance Method Detail
def 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.