Project

General

Profile

Actions

VirtualRequests » History » Revision 1

Revision 1/5 | Next »
icy, 2008-10-11 17:45


VirtualRequests

One request may need several sub requests; fastcgi defines 3 roles for backends which i would use here too (with a little bit different interpretation):
  • Authorizer: doesn't see the request content; request handling waits until result is available
    This one is the same as the fastcgi authorizer.
Implementation: authorize actionblock
  • make a virtual request, copy the "request" into it
  • wait for response headers; if status = 200: drop content and go on
    else forward content and response headers
  • Responder: generates the content
  • Filter: a response filter

Basic Structure

  • Every virtual request "owns" the request headers and has a pointer for the response headers (which are the request headers of the next one)
  • callbacks set by the master of a request:
    • handle_response_headers
    • handle_response_body
  • callbacks set by the content handler:
    • handle_request_headers
    • handle_request_body

Updated by icy about 16 years ago · 1 revisions