Skip to content

Serialize objects directy to request stream#361

Open
Henrik (Henr1k80) wants to merge 1 commit intocontentful:masterfrom
Henr1k80:master
Open

Serialize objects directy to request stream#361
Henrik (Henr1k80) wants to merge 1 commit intocontentful:masterfrom
Henr1k80:master

Conversation

@Henr1k80
Copy link
Contributor

When sending requests, avoid:

  • Converting an object to a JSON UTF-16 string,
  • that is then converted & copied to a UTF-8 byte array
  • that is then converted & copied to a UTF-16 string
  • that is then converted to UTF-8 when sending the HttpContent

Just serialize it directly to the request stream bytes.

Greta will be grateful, if you merge this.

…ed to a UTF-8 byte array, that is then copied to a UTF-16 string, that is then converted to UTF-8 when sending the HttpContent
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