incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject new member of #http record ?
Date Tue, 02 Feb 2010 13:09:35 GMT
Any objection I add UrlHandlers and DefaultFun to the #http record.
Would be usefull for any custom handler that need to use the
http_handler and not only the db and design http handlers. Like for
example in the rewriter.

So record would become :

-record(httpd,
    {mochi_req,
    peer,
    method,
    path_parts,
    db_url_handlers,
    user_ctx,
    req_body = undefined,
    design_url_handlers,
    auth,
    default_fun,
    url_handlers
    }).

This is really a small change but very useful since we don't need to
have read a new time the ini for that.

- benoit

Mime
View raw message