requestdispatcher.cpp 524 B

1234567891011121314151617181920
  1. /*
  2. Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler
  3. Distributed under MIT license, or public domain if desired and
  4. recognized in your jurisdiction.
  5. See file LICENSE for detail.
  6. */
  7. #include "requestdispatcher.h"
  8. #include "request.h"
  9. #include "response.h"
  10. #include "cstlcompiler.h"
  11. CWF_BEGIN_NAMESPACE
  12. void RequestDispatcher::forward(CWF::Request &request, CWF::Response &response)
  13. {
  14. response.write(CSTLCompiler(file.toUtf8(), request.getPath(), request.attributes).output());
  15. }
  16. CWF_END_NAMESPACE