class

Alumna::Testing::AppClient

Inherits Reference < Object

A virtual HTTP client that dispatches requests directly to the Alumna router entirely in memory. It skips network binding, sockets, and sleeps.

Constructors

new(app : App, trusted_proxies : App::TrustedProxies = nil)
Source

Instance methods

default_headers
Source
delete(path : String, headers : Hash(String, String) | Nil = nil)
Source
get(path : String, headers : Hash(String, String) | Nil = nil)
Source
options(path : String, headers : Hash(String, String) | Nil = nil)
Source
patch(path : String, body : String | Nil = nil, headers : Hash(String, String) | Nil = nil)
Source
post(path : String, body : String | Nil = nil, headers : Hash(String, String) | Nil = nil)
Source
put(path : String, body : String | Nil = nil, headers : Hash(String, String) | Nil = nil)
Source
request(method : String, path : String, body : String | Nil = nil, headers : Hash(String, String) | Nil = nil) : AppClientResponse
Source
router
Source