miyagawa / Starman

Starman is a high-performance preforking Perl PSGI web server
http://search.cpan.org/dist/Starman
Other
287 stars 84 forks source link

Add psgix.informational callback #146

Closed robrwo closed 2 years ago

robrwo commented 2 years ago

This adds an informational callback as per Starlet or Gazelle servers.

It also changes the "100 Continue" handler to use the callback method code.

miyagawa commented 2 years ago

This looks great! Is it possible to write a unit test for this?

robrwo commented 2 years ago

This looks great! Is it possible to write a unit test for this?

I tried writing one but wasn't sure how to get the raw HTTP result without modifying Plack::Test. (I was hoping there was a HTTP 100 test I could borrow from.)

Do you have any ideas how this could be done?

robrwo commented 2 years ago

This looks great! Is it possible to write a unit test for this?

Done.

robrwo commented 2 years ago

Any plans to release a new version with this change soon?