Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Making Requests

Amatsuka Mao edited this page Jul 11, 2019 · 1 revision

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 
    ->

Clone this wiki locally