OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::HttpServer::ResponseNotFound Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/HttpServer.hpp>

Inheritance diagram for Slic3r::GUI::HttpServer::ResponseNotFound:
Collaboration diagram for Slic3r::GUI::HttpServer::ResponseNotFound:

Public Member Functions

 ~ResponseNotFound () override=default
void write_response (std::stringstream &ssOut) override

Detailed Description

Constructor & Destructor Documentation

◆ ~ResponseNotFound()

Slic3r::GUI::HttpServer::ResponseNotFound::~ResponseNotFound ( )
overridedefault

Member Function Documentation

◆ write_response()

void Slic3r::GUI::HttpServer::ResponseNotFound::write_response ( std::stringstream & ssOut)
overridevirtual

Implements Slic3r::GUI::HttpServer::Response.

421{
422 const std::string sHTML = "<html><body><h1>404 Not Found</h1><p>There's nothing here.</p></body></html>";
423 ssOut << "HTTP/1.1 404 Not Found" << std::endl;
424 ssOut << "content-type: text/html" << std::endl;
425 ssOut << "content-length: " << sHTML.length() << std::endl;
426 ssOut << std::endl;
427 ssOut << sHTML;
428}

The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/HttpServer.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/HttpServer.cpp