Metadata-Version: 2.0
Name: httpie-akamai
Version: 0.1.5
Summary: Akamai utility plugins for HTTPie.
Home-page: https://github.com/matteck/httpie-akamai
Author: Matt Eckhaus
Author-email: matt@eckha.us
License: BSD
Download-URL: https://github.com/matteck/httpie-akamai
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Developers
Classifier: Environment :: Plugins
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Utilities
Requires-Dist: httpie (>=0.9.0)
Requires-Dist: requests

httpie-akamai
=============

`HTTPie <https://github.com/jkbr/httpie>`_ plugin to help with testing sites hosted on the Akamai content delivery network.

**Note: this software is not provided or endorsed by Akamai Technologies**

This plugin will add standard Akamai debugging headers to the request, and colorize Akamai informational headers in the response.

Optionally, the request can be forced to the Akamai production or staging networks (if the public hostname is the same as the edge hostname).

Installation
------------

.. code-block:: bash

    $ pip install httpie-akamai

Usage
-----

Prefix the URL with *ak-*, *akp-* or *aks-* to activate the plugin. The plugin handles URLs starting with "ak" as an alternative schema.

Use *ak-* to activate debugging headers and syntax coloring without changing the request target:

.. code-block:: bash

    $ http -pHh ak-http://www.example.com/

Use *akp-* or *aks-* to force the request onto the Akamai production or staging network respectively. This only works if the public hostname and the edge hostname are the same.

.. code-block:: bash

    $ http -pHh akp-http://www.example.com
    # is equivalent to
    $ http -pHh http://www.example.com.edgesuite.net Host:www.example.com

.. code-block:: bash

    $ http aks-http://www.example.com
    # is equivalent to
    $ http -pHh http://www.example.com.edgesuite-staging.net Host:www.example.com

