<commit_before>Full configuration
==================

This page shows an example of all configuration values provided by the bundle.

.. code-block:: yaml

    // config.yml
    httplug:
        main_alias:
            client: httplug.client.default
            message_factory: httplug.message_factory.default
            uri_factory: httplug.uri_factory.default
            stream_factory: httplug.stream_factory.default
        classes:
            # uses discovery if not specified
            client: ~
            message_factory: ~
            uri_factory: ~
            stream_factory: ~

        plugins:
            authentication:
                my_basic:
                    type: 'basic'
                    username: 'my_username'
                    password: '<PASSWORD>'
                my_wsse:
                    type: 'wsse'
                    username: 'my_username'
                    password: '<PASSWORD>'
                my_bearer:
                    type: 'bearer'
                    token: 'authentication_token_hash'
                my_service:
                    type: 'service'
                    service: 'my_authentication_service'
            cache:
                enabled: true
                cache_pool: 'my_cache_pool'
                stream_factory: 'httplug.stream_factory'
                config:
                    default_ttl: 3600
                    respect_cache_headers: true
            cookie:
                enabled: true
                cookie_jar: my_cookie_jar
            decoder:
                enabled: true
                use_content_encoding: true
            history:
                enabled: true
                journal: my_journal
            logger:
                enabled: true
                logger: 'logger'
                formatter: null
            redirect:
                enabled: true
                preserve_header: true
                use_default_for_multiple: true
            retry:
                enabled: true
                retry: 1
            stopwatch:
                enabled: true
                stopwatch: 'debug.stopwatch'
        clients:
            acme:
                factory: 'httplug.factory.guzzle6'
                plugins: ['httplug.plugin.authentication.my_wsse', 'httplug.plugin.cache', 'httplug.plugin.retry']
                config:
                    verify: false
                    timeout: 2
                    # more options to the guzzle 6 constructor

<commit_msg>Added parameters to config reference.<commit_after>Full configuration
==================

This page shows an example of all configuration values provided by the bundle.

.. code-block:: yaml

    // config.yml
    httplug:
        main_alias:
            client: httplug.client.default
            message_factory: httplug.message_factory.default
            uri_factory: httplug.uri_factory.default
            stream_factory: httplug.stream_factory.default
        classes:
            # uses discovery if not specified
            client: ~
            message_factory: ~
            uri_factory: ~
            stream_factory: ~

        plugins:
            authentication:
                my_basic:
                    type: 'basic'
                    username: 'my_username'
                    password: '<PASSWORD>'
                my_wsse:
                    type: 'wsse'
                    username: 'my_username'
                    password: '<PASSWORD>'
                my_bearer:
                    type: 'bearer'
                    token: 'authentication_token_hash'
                my_service:
                    type: 'service'
                    service: 'my_authentication_service'
            cache:
                enabled: true
                cache_pool: 'my_cache_pool'
                stream_factory: 'httplug.stream_factory'
                config:
                    default_ttl: 3600
                    respect_cache_headers: true
            cookie:
                enabled: true
                cookie_jar: my_cookie_jar
            decoder:
                enabled: true
                use_content_encoding: true
            history:
                enabled: true
                journal: my_journal
            logger:
                enabled: true
                logger: 'logger'
                formatter: null
                captured_body_length: 0
            redirect:
                enabled: true
                preserve_header: true
                use_default_for_multiple: true
            retry:
                enabled: true
                retry: 1
            stopwatch:
                enabled: true
                stopwatch: 'debug.stopwatch'

        discovery:
            client: 'auto'
            async_client: null

        clients:
            acme:
                factory: 'httplug.factory.guzzle6'
                plugins: ['httplug.plugin.authentication.my_wsse', 'httplug.plugin.cache', 'httplug.plugin.retry']
                flexible_client: false
                http_methods_client: false
                config:
                    verify: false
                    timeout: 2
                    # more options to the guzzle 6 constructor


{'fraction_non_alphanumeric': 0.06423777564717162, 'fraction_numerical': 0.0032598274209012464, 'mean_word_length': 1.1298489179256839, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3095918', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1146, 'n_words': 285}