We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I find no comprehensive examples and I can't even set the content-type for a unirest.post!
The text was updated successfully, but these errors were encountered:
What about using Unirests "header" method and set the content type? Modified example:
HttpResponse<MyClass> jsonResponse = Unirest.post("http://httpbin.org/post") .header("Content-Type", "application/json") .asJson<MyClass>();
Sorry, something went wrong.
@kotpal-tangocard The Content-Type it's just a header, so you can take inspiration from @dennisfischer sample code.
Content-Type
NullReferenceException when using this header. I know its old and unmantained. this comment is just to warn newcomers.
No branches or pull requests
I find no comprehensive examples and I can't even set the content-type for a unirest.post!
The text was updated successfully, but these errors were encountered: