<div dir="ltr"><div>While using twisted.web (but not only) I had to sub-class twisted code to implement the following:</div><div><br></div><div>HTTPChannel</div><div>* reduce limit of HTTP headers length</div><div>* reduce number of HTTP headers</div>

<div>* connection timeout</div><div><br></div><div>HTTPRequest</div><div>* change HTTP server signature</div><div>* change HTTP cookie name and secure/HTTPOnly flag</div><div><br></div>Static.File<div>* resource for child not found</div>

<div>* resource for forbidden</div><div>* template for directory listing.<br clear="all"><div><br></div><div>During review process, one feedback was to add these options as part of __init__ method for the required classes and another one was to design some configuration system, which allows changing these options without sub-classing.</div>

<div><br></div><div>What do you think? Should I go ahead and add options as __init__ arguments or think of a configuration system?</div><div><br></div><div>Thanks!</div><div><br></div>-- <br>Adi Roiban
</div></div>