From: Eric Wong <normalperson@yhbt.net>
To: mongrel-unicorn@rubyforge.org
Subject: internal API changes in Unicorn 2.x
Date: Fri, 8 Oct 2010 14:37:30 -0700 [thread overview]
Message-ID: <20101008213730.GA30777@dcvr.yhbt.net> (raw)
Here's a non-exhaustive list of internal API changes for Unicorn 2.x.
This will NOT affect most users, only those who use/rely on the
undocumented API which we've never recommended people to use.
This mainly affects Rainbows! development. Nearly all of these changes
are to make life easier for Rainbows! which Unicorn 2.x is intended to
support.
* Util.tmpio -> TmpIO.new
* HttpParser and HttpRequest become the same class
- not finalized, yet, one name will go away, probably in 3.x
- the Rack "env" hash and "buf" String buffer belong
to the C struct since they're always used together
- the outward API should be mostly compatible with 1.1.x
- PARSER, BUF, REQ constants removed from HttpRequest,
the new HttpParser holds all these on a per-socket basis
- HttpParser#parse method added to work on the env/buf
elements
* TeeInput.new takes only two parameters, socket and the
parser/request object
* HttpRequest::LOCALHOST constant removed, use Kgio::LOCALHOST
* RACK_INPUT and REMOTE_ADDR constants moved from Const to HttpRequest
since they're unused outside of HttpRequest
If there are other apps/libraries who depend on some things we changed
and you really can't have it any other way, we _may_ try to accomodate
you if it's not too much effort.
--
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
reply other threads:[~2010-10-08 21:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101008213730.GA30777@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
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).