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

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes