Making Requests - matical/nana GitHub Wiki

Fetch provides multiple ways to create fluent requests.

By default, nana makes use of these default Guzzle request options. You are free to override

protected $defaultOptions = [
    'http_errors' => false,
    'headers'     => [
        'User-Agent' => 'nana/0.1',
        'Accept'     => 'application/json',
    ],
];
use ksmz\nana\Nana;

Nana::withOptions() // Guzzle 
    ->