runemadsen / HTTP-Requests-for-Processing

http://www.runemadsen.com
MIT License
140 stars 39 forks source link

Edit request headers before send it. #10

Closed decolector closed 8 years ago

decolector commented 9 years ago

I don't know if this is the right place to post this. Here it goes anyway.

Is there any method to add / remove / edit the request headers before sending it ?

Thanks!

Avamander commented 9 years ago

I too would like to know.

runemadsen commented 9 years ago

There is currently no way of doing this, but it shouldn't be too hard to add. I warmly welcome pull requests, no matter what state they're in :)

Avamander commented 9 years ago

@runemadsen I think I would not have this problem if I knew how to do this myself .-.

leandro-navarro commented 8 years ago

The addHeader method does that. For instance: get.addHeader("Accept", "application/json"); before calling the send() method.

shiffman commented 8 years ago

I believe this is all set now, if not file a new issue. thanks all!

PoolloverNathan commented 5 years ago

I think he mentioned editing and removing, not just adding.