Skip to content

Deserialize http client response using response streams instead of st…#23

Open
sameera-masterloop wants to merge 1 commit intomasterfrom
http-client-streams
Open

Deserialize http client response using response streams instead of st…#23
sameera-masterloop wants to merge 1 commit intomasterfrom
http-client-streams

Conversation

@sameera-masterloop
Copy link
Contributor

The aim or this PR was to improve the memory utilization when using HttpClient to communicate with Masterloop REST API
The changes include:

  • Deserialize objects using response streams in HttpClient instead of passing an intermediate string for deserialization
  • Add some basic tests for the REST api

The improvements were based on this article: https://code-maze.com/using-streams-with-httpclient-to-improve-performance-and-memory-usage/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant