New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_http: Add arbitrary HTTP headers #656

Merged
merged 1 commit into from Jun 27, 2018

Conversation

Projects
None yet
3 participants
@michiel
Contributor

michiel commented Jun 25, 2018

This adds a new configuration option 'Header', which will add an
arbitrary key/value pair as HTTP header to outgoing HTTP requests.

Signed-off-by: Michiel Kalkman michiel@nosuchtype.com

out_http: Add arbitrary HTTP headers
This adds a new configuration option '`Header`', which will add an
arbitrary key/value pair as HTTP header to outgoing HTTP requests.

Signed-off-by: Michiel Kalkman <michiel@nosuchtype.com>

@michiel michiel force-pushed the michiel:feature/out_http_add_headers branch from 8e17b86 to 625a946 Jun 25, 2018

@edsiper edsiper merged commit 68809d6 into fluent:master Jun 27, 2018

2 checks passed

DCO All commits have a DCO sign-off from the author
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@edsiper

This comment has been minimized.

Contributor

edsiper commented Jun 27, 2018

thanks

@michiel michiel deleted the michiel:feature/out_http_add_headers branch Jun 27, 2018

@samgurtman

This comment has been minimized.

samgurtman commented Aug 2, 2018

Are there any docs on how to use this if I wanted to test it out on dev? For example how would I specify it using "-p" on the command line?

@michiel

This comment has been minimized.

Contributor

michiel commented Aug 3, 2018

I'll add a doc PR for this. It's been on the todo list.

[OUTPUT]
    Name           http
    Match          *
    Host           127.0.0.1
    Port           9000
    header         X-A-Value Awesome_A
    header         X-B-Value Awesome_B
    URI            /something

On the command line it should be,

-p "Header=X-A-Value Awesome_A" -p "Header=X-B-Value Awesome_B"  
@michiel

This comment has been minimized.

Contributor

michiel commented Aug 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment