Thomas Levesque 11/30/2013

Uploading data with HttpClient using a "push" model

Read Original

This technical article discusses data upload strategies in .NET's HttpClient. It contrasts the default 'pull' model, where data must be fully prepared before sending, with a 'push' model for on-the-fly generation. The post explains how to implement a push model by creating a custom HttpContent class or using the existing PushStreamContent from the Web API 2 Client library, providing code examples for scenarios like streaming large JSON objects.

Uploading data with HttpClient using a "push" model

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week