Patrik Ragnarsson
3bee53840c
Add #string method to Puma::NullIO ( #2520 )
...
Makes Puma::NullIO more similar to [StringIO].
[StringIO]: https://docs.ruby-lang.org/en/2.5.0/StringIO.html#method-i-string
2021-01-04 09:52:23 -07:00
Nate Berkopec
2cef8ddae1
improved rubocop config ( #2152 )
2020-03-07 08:15:43 -06:00
schneems
88e51fb08e
Freeze all the strings!
...
Reduces runtime allocation by freezing string literals by default.
We could also remove a ton of manual `.freeze` calls, however the ruby supported version is 2.2 and the magic comment only targets 2.3+.
2018-09-17 11:41:14 -05:00
Charles Brubaker
41c4da6af1
Add eof? method to NullIO? ( #1169 )
...
* Added eof? method to NullIO
See https://github.com/rack/rack/blob/master/lib/rack/multipart/parser.rb#L68
2016-12-12 09:58:36 -07:00
Francesco Rodriguez
6b1b8e7190
Add tests for Puma::NullIO method comments. ( #1158 )
2016-11-23 07:32:33 -07:00
Evan Phoenix
33e0fa9999
Manage nested configuration better
2016-02-07 14:51:54 -08:00
Mike Pastore
a9a5ef93b1
Add NullIO#size and test
2016-02-04 22:54:21 -06:00
Dean Strelau
a1eee5aa0b
Remove StringIO dependency from NullIO
2012-04-30 14:55:16 -04:00
Dean Strelau
5fbd942f84
Make NullIO#read mimic IO#read
2012-04-30 14:28:22 -04:00
Evan Phoenix
b18cfae4b1
Write a bunch of documentation
2011-12-01 15:23:14 -08:00
Evan Phoenix
bcdd5357fb
Use a singleton null object for empty request bodies
2011-12-01 14:33:34 -08:00