redirectionio 3.1.0

Redirection IO Library to handle matching rule, redirect and filtering headers and body.
Documentation
{
    "router_config": {
        "ignore_host_case": false,
        "ignore_header_case": false,
        "ignore_path_and_query_case": false,
        "ignore_marketing_query_params": true,
        "marketing_query_params": [
            "utm_campaign",
            "utm_content",
            "utm_medium",
            "utm_source",
            "utm_term"
        ],
        "pass_marketing_query_params_to_target": true,
        "always_match_any_host": false,
        "ignore_query_param_order": true
    },
    "rules": [
        {
            "source": {
                "host": "",
                "path": "/",
                "query": "",
                "scheme": "",
                "sampling": null,
                "methods": [],
                "headers": [],
                "response_status_codes": [],
                "ips": []
            },
            "id": "A",
            "rank": 3,
            "markers": [],
            "body_filters": [],
            "header_filters": [
                {
                    "action": "add",
                    "header": "location",
                    "target_hash": "header::location",
                    "value": "toto",
                    "id": "A:1"
                }
            ],
            "target": "",
            "redirect_code": null,
            "redirect_unit_id": null,
            "examples": [
                {
                    "id": "example:A:1",
                    "url": "/",
                    "must_match": true,
                    "headers": [],
                    "response_status_code": 200,
                    "method": "GET",
                    "unit_ids_applied": [
                        "A:1"
                    ]
                }
            ]
        },
        {
            "source": {
                "host": "",
                "path": "/",
                "query": "",
                "scheme": "",
                "sampling": null,
                "methods": [],
                "headers": [],
                "response_status_codes": [],
                "ips": []
            },
            "id": "B",
            "rank": 2,
            "markers": [],
            "body_filters": [],
            "header_filters": [
                {
                    "action": "replace",
                    "header": "location",
                    "target_hash": "header::location",
                    "value": "NEW",
                    "id": "B:1"
                }
            ],
            "target": "",
            "redirect_code": null,
            "redirect_unit_id": null,
            "examples": []
        }
    ],
    "max_hops": 5
}