Skip to content

Instantly share code, notes, and snippets.

@jcdickinson
Created October 22, 2013 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcdickinson/4dd0125d7c5af9d4878f to your computer and use it in GitHub Desktop.
Save jcdickinson/4dd0125d7c5af9d4878f to your computer and use it in GitHub Desktop.
HttpResponse<MyClass> jsonResponse = Unirest.Post("http://httpbin.org/post")
.Header("accept", "application/json")
.Field("parameter", "value")
.Field("foo", "bar")
.AsJson<MyClass>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment