icyleaf / halite

💎HTTP Requests Client with a chainable REST API, built-in sessions and middlewares.
MIT License
170 stars 13 forks source link

Option to send raw post data #20

Closed wirrareka closed 6 years ago

wirrareka commented 6 years ago

Hi,

first, thanks for great job on halite! I was looking for a way to perform POST request with raw string body, for handling cases that are neither json or form encoded body (handling elasticsearch bulk api in my case). Is that somehow possible ?

thanks,

Matej

icyleaf commented 6 years ago

i will working it. :)

icyleaf commented 6 years ago

Use the master branch and check the doc: https://github.com/icyleaf/halite/#raw-string

wirrareka commented 6 years ago

Works great! you might want to mention in the docs that with raw mode, the user should set content-type request header manually.

thanks alot!

Matej

icyleaf commented 6 years ago

Halite v0.5.0 was released.

Thanks for feedback. welcome for any issues.