Skip to content

Serialize objects directy to request stream #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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