Example #1
0
 protected function setupRequest(Http\Request $request)
 {
     parent::setupRequest($request);
     $request->setHeader('Connection', 'close');
     $request->addHeader('User-Agent', 'Bitbang/' . Http\Library::VERSION . ' (Stream)');
 }
Example #2
0
 protected function setupRequest(Http\Request $request)
 {
     parent::setupRequest($request);
     $request->addHeader('Connection', 'keep-alive');
     $request->addHeader('User-Agent', 'Bitbang/' . Http\Library::VERSION . ' (cURL)');
 }