Files
HTTPServer/readit
T

155 lines
13 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
In file included from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__index.h:11:11: error: ‘int http::__index::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
11 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:7,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__script.h:10:11: error: ‘int http::__script::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
10 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__editview.h:11:11: error: ‘int http::__editview::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
11 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__editview_js.h:10:11: error: ‘int http::__editview_js::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
10 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:10,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__style.h:10:11: error: ‘int http::__style::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
10 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__setupadmin.h:8:11: error: ‘int http::__setupadmin::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
8 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:12,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__favicon_ico.h:10:11: error: ‘int http::__favicon_ico::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
10 | int processCommand(std::string request,
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__welcome.h:10:11: error: ‘int http::__welcome::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
10 | int processCommand(std::string request,
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:14,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__mainmenu.h:10:11: error: ‘int http::__mainmenu::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
10 | int processCommand(std::string request,
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__configure.h:8:11: error: ‘int http::__configure::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
8 | int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
__viewlist.h:11:11: error: ‘int http::__viewlist::processCommand(std::string, core::TCPSession*, http::HTTPSession*, http::HTTPRequest*, std::stringstream&)’ marked ‘override’, but does not override
11 | int processCommand(std::string request,
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
_image.h:18:11: error: ‘int http::_image::processCommand(coreutils::ZString&, core::TCPSession&, http::HTTPSession&, http::HTTPRequest&)’ marked ‘override’, but does not override
18 | int processCommand(coreutils::ZString &request, core::TCPSession &session, HTTPSession &httpSession, HTTPRequest &httpRequest) override {
| ^~~~~~~~~~~~~~
_image.h: In member function ‘bool http::_image::test(coreutils::ZString&)’:
_image.h:12:21: error: ‘class coreutils::ZString’ has no member named ‘substr’
12 | if(request.substr(0, 7) == "/image/") {
| ^~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPHandler.cpp:3:
_image.h: In member function ‘int http::_image::processCommand(coreutils::ZString&, core::TCPSession&, http::HTTPSession&, http::HTTPRequest&)’:
_image.h:25:31: error: ‘class coreutils::IMFResponse’ has no member named ‘setBody’; did you mean ‘getBody’?
25 | httpRequest.response.setBody(workspace.asString());
| ^~~~~~~
| getBody
HTTPHandler.cpp: In member function ‘virtual int http::HTTPHandler::processCommand(coreutils::ZString&, core::TCPSession&)’:
HTTPHandler.cpp:15:39: error: no matching function for call to ‘http::HTTPHandler::processHTTPRequest(core::TCPSession&)’
15 | processHTTPRequest(session);
| ^
In file included from HTTPHandler.cpp:1:
HTTPHandler.h:19:12: note: candidate: ‘bool http::HTTPHandler::processHTTPRequest(core::TCPSession&, std::stringstream&)’
19 | bool processHTTPRequest(core::TCPSession &session, std::stringstream &data);
| ^~~~~~~~~~~~~~~~~~
HTTPHandler.h:19:12: note: candidate expects 2 arguments, 1 provided
HTTPHandler.cpp:18:23: error: ‘class http::HTTPRequest’ has no member named ‘parse’
18 | httpRequest->parse(request1);
| ^~~~~
HTTPHandler.cpp:18:29: error: ‘request1’ was not declared in this scope; did you mean ‘request’?
18 | httpRequest->parse(request1);
| ^~~~~~~~
| request
HTTPHandler.cpp:21:39: error: no matching function for call to ‘http::HTTPHandler::processHTTPRequest(core::TCPSession&)’
21 | processHTTPRequest(session);
| ^
In file included from HTTPHandler.cpp:1:
HTTPHandler.h:19:12: note: candidate: ‘bool http::HTTPHandler::processHTTPRequest(core::TCPSession&, std::stringstream&)’
19 | bool processHTTPRequest(core::TCPSession &session, std::stringstream &data);
| ^~~~~~~~~~~~~~~~~~
HTTPHandler.h:19:12: note: candidate expects 2 arguments, 1 provided
HTTPHandler.cpp: In member function ‘bool http::HTTPHandler::processHTTPRequest(core::TCPSession&, std::stringstream&)’:
HTTPHandler.cpp:29:66: error: base operand of ‘->’ has non-pointer type ‘core::TCPSession’
29 | HTTPSession *httpSession = static_cast<HTTPServer&>(session->server).httpSessions.findSessionByHeader(httpRequest);
| ^~
HTTPHandler.cpp:33:43: error: base operand of ‘->’ has non-pointer type ‘core::TCPSession’
33 | if(static_cast<HTTPServer &>(session->server).pageList.processRequest(httpRequest, session, httpSession, content)) {
| ^~
HTTPHandler.cpp:35:56: error: conversion from ‘coreutils::ZString’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
35 | std::string contentType = httpRequest->getHeader("Content-Type");
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
HTTPHandler.cpp:43:63: error: no matching function for call to ‘coreutils::IMFResponse::getResponse(std::__cxx11::basic_stringstream<char>::__string_type)’
43 | data << httpRequest->response.getResponse(content.str());
| ^
In file included from HTTPRequest.h:7,
from HTTPHandler.h:8,
from HTTPHandler.cpp:1:
../CoreUtils/IMFResponse.h:42:25: note: candidate: ‘std::stringstream coreutils::IMFResponse::getResponse(coreutils::IMFResponse::Mode)’
42 | std::stringstream getResponse(Mode mode = LENGTH);
| ^~~~~~~~~~~
../CoreUtils/IMFResponse.h:42:42: note: no known conversion for argument 1 from ‘std::__cxx11::basic_stringstream<char>::__string_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘coreutils::IMFResponse::Mode’
42 | std::stringstream getResponse(Mode mode = LENGTH);
| ~~~~~^~~~~~~~~~~~~
../CoreUtils/IMFResponse.h:56:25: note: candidate: ‘std::stringstream coreutils::IMFResponse::getResponse(std::stringstream&, coreutils::IMFResponse::Mode)’
56 | std::stringstream getResponse(std::stringstream &content, Mode mode = LENGTH);
| ^~~~~~~~~~~
../CoreUtils/IMFResponse.h:56:56: note: no known conversion for argument 1 from ‘std::__cxx11::basic_stringstream<char>::__string_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::stringstream&’ {aka ‘std::__cxx11::basic_stringstream<char>&’}
56 | std::stringstream getResponse(std::stringstream &content, Mode mode = LENGTH);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
HTTPHandler.cpp:49:63: error: no matching function for call to ‘coreutils::IMFResponse::getResponse(std::__cxx11::basic_stringstream<char>::__string_type)’
49 | data << httpRequest->response.getResponse(content.str());
| ^
In file included from HTTPRequest.h:7,
from HTTPHandler.h:8,
from HTTPHandler.cpp:1:
../CoreUtils/IMFResponse.h:42:25: note: candidate: ‘std::stringstream coreutils::IMFResponse::getResponse(coreutils::IMFResponse::Mode)’
42 | std::stringstream getResponse(Mode mode = LENGTH);
| ^~~~~~~~~~~
../CoreUtils/IMFResponse.h:42:42: note: no known conversion for argument 1 from ‘std::__cxx11::basic_stringstream<char>::__string_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘coreutils::IMFResponse::Mode’
42 | std::stringstream getResponse(Mode mode = LENGTH);
| ~~~~~^~~~~~~~~~~~~
../CoreUtils/IMFResponse.h:56:25: note: candidate: ‘std::stringstream coreutils::IMFResponse::getResponse(std::stringstream&, coreutils::IMFResponse::Mode)’
56 | std::stringstream getResponse(std::stringstream &content, Mode mode = LENGTH);
| ^~~~~~~~~~~
../CoreUtils/IMFResponse.h:56:56: note: no known conversion for argument 1 from ‘std::__cxx11::basic_stringstream<char>::__string_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::stringstream&’ {aka ‘std::__cxx11::basic_stringstream<char>&’}
56 | std::stringstream getResponse(std::stringstream &content, Mode mode = LENGTH);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~