rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* rack-contrib: add Rack::ContentLength
@ 2010-02-06  1:13 Gaius
  2010-02-06  5:04 ` Martin
  0 siblings, 1 reply; 3+ messages in thread
From: Gaius @ 2010-02-06  1:13 UTC (permalink / raw)
  To: Rack Development

I added a Rack::ContentLength middleware that automatically sets the
"Content-Length" header for responses that (a) lack such a header and
(b) have String bodies. The relevant commits are here:

http://github.com/jamesarosen/rack-contrib/commit/77d708727682a25329deaa3122fd52a9e78e15df
and here:
http://github.com/jamesarosen/rack-contrib/commit/40775deb36a792096cb3120713254be61d4c58fb

As best I could tell, this functionality does not exist elsewhere. If
it does, please let me know.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rack-contrib: add Rack::ContentLength
  2010-02-06  1:13 rack-contrib: add Rack::ContentLength Gaius
@ 2010-02-06  5:04 ` Martin
  2010-02-06 14:22   ` Gaius
  0 siblings, 1 reply; 3+ messages in thread
From: Martin @ 2010-02-06  5:04 UTC (permalink / raw)
  To: rack-devel

Rack::ContentLength exists in core.
http://github.com/rack/rack/blob/master/lib/rack/content_length.rb

On Fri, Feb 5, 2010 at 8:13 PM, Gaius <james.a.rosen@gmail.com> wrote:
> I added a Rack::ContentLength middleware that automatically sets the
> "Content-Length" header for responses that (a) lack such a header and
> (b) have String bodies. The relevant commits are here:
>
> http://github.com/jamesarosen/rack-contrib/commit/77d708727682a25329deaa3122fd52a9e78e15df
> and here:
> http://github.com/jamesarosen/rack-contrib/commit/40775deb36a792096cb3120713254be61d4c58fb
>
> As best I could tell, this functionality does not exist elsewhere. If
> it does, please let me know.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rack-contrib: add Rack::ContentLength
  2010-02-06  5:04 ` Martin
@ 2010-02-06 14:22   ` Gaius
  0 siblings, 0 replies; 3+ messages in thread
From: Gaius @ 2010-02-06 14:22 UTC (permalink / raw)
  To: Rack Development

I _knew_ it was somewhere. I have no idea how I overlooked it.
Thanks :)

On Feb 6, 12:04 am, Martin <martin.aum...@gmail.com> wrote:
> Rack::ContentLength exists in core.http://github.com/rack/rack/blob/master/lib/rack/content_length.rb
>
> On Fri, Feb 5, 2010 at 8:13 PM, Gaius <james.a.ro...@gmail.com> wrote:
> > I added a Rack::ContentLength middleware that automatically sets the
> > "Content-Length" header for responses that (a) lack such a header and
> > (b) have String bodies. The relevant commits are here:
>
> >http://github.com/jamesarosen/rack-contrib/commit/77d708727682a25329d...
> > and here:
> >http://github.com/jamesarosen/rack-contrib/commit/40775deb36a792096cb...
>
> > As best I could tell, this functionality does not exist elsewhere. If
> > it does, please let me know.
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-06 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06  1:13 rack-contrib: add Rack::ContentLength Gaius
2010-02-06  5:04 ` Martin
2010-02-06 14:22   ` Gaius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).