brendanmetzger / diatom

A template framework
1 stars 0 forks source link

Is the regex in the request constructor necessary #11

Closed brendanmetzger closed 4 years ago

brendanmetzger commented 4 years ago

setting 'index' dynamically can streamline request::delegate logic by setting the proper view response directly, instead of setting and using the 'basic flag elsewhere to process, duplicating the logic. If there is an HTTP_YIELD flag, there is no need for the index document to be set as the body of the request, as the requested document is all that need be returned.