Skip to content
New issue

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

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

Already on GitHub? # to your account

ESP8266WebServer: Add variadic template version of collectHeaders() #7296

Merged
merged 2 commits into from
Mar 15, 2021

Conversation

jjsuwa
Copy link
Contributor

@jjsuwa jjsuwa commented May 11, 2020

  • More user-friendly, less RODATA usage.

eg. webServer.collectHeaders(F("Content-Type"), F("Origin"));

In this example, less about 20 bytes than the traditional way.

@earlephilhower
Copy link
Collaborator

@jjsuwa, it looks like this changes the API in a way that breaks existing examples. Can you check the Travis CI logs and see?

@jjsuwa
Copy link
Contributor Author

jjsuwa commented May 12, 2020

Hmm, Travis CI notification stalled?
Build #10881 seems done.

@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 5 times, most recently from 135ac22 to 2c5c987 Compare May 20, 2020 22:33
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 5 times, most recently from 7fe8662 to c9c046f Compare June 3, 2020 01:05
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 8 times, most recently from 6f3fe64 to 043345c Compare June 13, 2020 22:02
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 4 times, most recently from bfdd076 to 029c160 Compare June 22, 2020 06:48
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 5 times, most recently from 4e1303e to f71eca5 Compare July 1, 2020 23:37
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch from f71eca5 to 71b3a99 Compare July 8, 2020 00:32
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 5 times, most recently from 79af719 to c94e389 Compare July 17, 2020 04:22
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.

approving the templatoid variadicoid collectHeaderoid, thanks !

@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 3 times, most recently from 2686eed to ced25ea Compare July 24, 2020 15:42
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 6 times, most recently from a604914 to db39012 Compare August 2, 2020 12:25
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch 3 times, most recently from 695a997 to 4a40d36 Compare August 6, 2020 01:27
@earlephilhower earlephilhower requested a review from devyte August 9, 2020 00:42
@earlephilhower
Copy link
Collaborator

@devyte, this is some deep template voodoo. Can you give it a look-see?

@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch from 65ce6b6 to ef0bb25 Compare August 9, 2020 02:05
@jjsuwa
Copy link
Contributor Author

jjsuwa commented Aug 9, 2020

Should libraries/ESP8266HTTPClient be done like this?

@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch from ef0bb25 to 7a75371 Compare September 24, 2020 22:56
* More user-friendly, less RODATA usage.

eg. `webServer.collectHeaders(F("Content-Type"), F("Origin"));`

In this example, less about 20 bytes than the traditional way.
@jjsuwa jjsuwa force-pushed the WebServer_collectHeaders_VT branch from 7a75371 to ef79356 Compare December 1, 2020 11:53
@earlephilhower earlephilhower merged commit 47b8947 into esp8266:master Mar 15, 2021
@jjsuwa jjsuwa deleted the WebServer_collectHeaders_VT branch March 15, 2021 10:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants