Add writeToPrint to ESP8266HTTPClient by TheNitek · Pull Request #8056 · esp8266/Arduino

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@TheNitek

Copy link

Contributor

Currently ESP8266HTTPClient only has writeToStream(Stream ), but interally only uses the Stream as a Print*. Since Print* is more lightweight, adding a writeToPrint(Print *) seems to make sense. E.g. this allows to use SdFile directly.
wirteToStream is kept for backward compatibility

Copy link

Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

@d-a-v d-a-v added this to the 3.1 milestone

Jul 11, 2021

@earlephilhower earlephilhower merged commit 140d0ff into esp8266:master

Sep 4, 2021

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

Reviewers

@earlephilhower earlephilhower earlephilhower approved these changes

@d-a-v d-a-v d-a-v approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@TheNitek @earlephilhower @d-a-v