minetro/cli-http-extension

This package is abandoned and no longer maintained. The author suggests using the contributte/http package instead.

CLI HTTP Extension for Nette

0.2.0 2016-08-30 10:18 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:30:30 UTC


README

CLI HTTP Extension for Nette. Provide URL in your CLI mode only, it does not override your http.request in other modes.

Downloads total Latest stable

Discussion / Help

Join the chat

Contributte

This package is no longer developed here. In favor of contributte/http.

Install

$ composer require minetro/cli-http-extension

Usage

Place it in your config file (e.q. config.neon).

Simplest

extensions:
    clihttp: Minetro\Bridges\CliHttpExtension(www.example.com)

Extended

extensions:
    clihttp: Minetro\Bridges\CliHttpExtension

clihttp:
    url: www.example.com
    # other params
    query: NULL
    post: NULL
    files: NULL
    cookies: NULL
    headers: NULL
    method: NULL
    remoteAddress: NULL
    remoteHost: NULL
    rawBodyCallback: NULL