Commit 725a3167 authored by jan.koester's avatar jan.koester
Browse files

api change

parent ec9373c9
Loading
Loading
Loading
Loading
+4 −4
Changes for examples/httpauth.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -67,9 +67,9 @@ public:
                << "<li><a href=\"/httpbasicauth\"> Basicauth </<a></li>"
                << "<li><a href=\"/httpdigestauth\"> Digestauth </<a></li>";
                condat  << "</ul></body></html>";
                std::string html;
                libhtmlpp::HtmlString html;
                libhtmlpp::print(condat.parse(),html);
                curres.send(curcon,html.c_str(),html.length());
                curres.send(curcon,html.c_str(),html.size());
            }else if(strncmp(cururl,"/httpbasicauth",strlen(cururl))==0 ||
                strncmp(cururl,"/httpdigestauth",strlen(cururl))==0){
                libhttppp::HttpAuth httpauth;
@@ -94,9 +94,9 @@ public:
                curres.setState(HTTP200);
                curres.setVersion(HTTPVERSION(1.1));
                curres.setContentType("text/html");
                std::string html;
                libhtmlpp::HtmlString html;
                libhtmlpp::print(condat.parse(),html);
                curres.send(curcon,html.c_str(),html.length());
                curres.send(curcon,html.c_str(),html.size());
                return;
                }else{
                    libhttppp::HttpResponse curres;
+2 −2
Changes for examples/httpcon.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -59,9 +59,9 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) {
               << "<br/>";
     }
     condat  << "</body></html>";
     std::string html;
     libhtmlpp::HtmlString html;
     libhtmlpp::print((condat.parse()),html);
     curres.send(curcon,html.c_str(),html.length());
     curres.send(curcon,html.c_str(),html.size());
};

class Controller : public netplus::event {
+2 −2
Changes for examples/httpcookie.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -61,9 +61,9 @@ public:
        parseCookie();
        _HTMLDat  << "</body></html>";

        std::string html;
        libhtmlpp::HtmlString html;
        libhtmlpp::print(_HTMLDat.parse(),html);
        _Curres.send(_Curcon,html.c_str(),html.length());
        _Curres.send(_Curcon,html.c_str(),html.size());
    };
    
    const char *getData(const char *key){
+2 −2
Changes for examples/httpform.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -179,9 +179,9 @@ private:
            << "<h2>Output</h2>";
        condat+=formdat;
        condat << "</div></body></html>";
        std::string html;
        libhtmlpp::HtmlString html;
        libhtmlpp::print(condat.parse(),html);
        curres.send(curcon, html.c_str(), html.length());
        curres.send(curcon, html.c_str(), html.size());
    };
};

+2 −2
Changes for examples/httpproxy.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -57,9 +57,9 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) {
               << "<br/>";
     }
     condat  << "</body></html>";
     std::string html;
     libhtmlpp::HtmlString html;
     libhtmlpp::print(condat.parse(),html);
     curres.send(curcon,html.c_str(),html.length());
     curres.send(curcon,html.c_str(),html.size());
};

class Controller : public netplus::event {
Loading