Skip to content

Commit a125f14

Browse files
authored
Merge pull request #257 from php-http/content-type-plugin
document content-type plugin
2 parents bfa9c56 + 7b626e7 commit a125f14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

integrations/symfony-full-configuration.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ This page shows an example of all configuration values provided by the bundle.
105105
uri: http://localhost:80 # Required
106106
# Whether to replace the host if request already specifies one
107107
replace: false
108+
# Set content-type header based on request body, if the header is not already set
109+
- content_type:
110+
# skip content-type detection if body is larger than size_limit
111+
skip_detection: true
112+
# size_limit in bytes for when skip_detection is enabled
113+
size_limit: 200000
108114
# Append headers to the request. If the header already exists the value will be appended to the current value.
109115
- header_append:
110116
# Keys are the header names, values the header values

0 commit comments

Comments
 (0)