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

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

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

Public Member Functions

 ResponseHtml (std::string html)
 ~ResponseHtml () override=default
void write_response (std::stringstream &ssOut) override

Private Attributes

const std::string html

Detailed Description

Constructor & Destructor Documentation

◆ ResponseHtml()

Slic3r::GUI::HttpServer::ResponseHtml::ResponseHtml ( std::string html)
inlineexplicit
114: html(std::move(html)) {}
const std::string html
Definition HttpServer.hpp:111

References html.

◆ ~ResponseHtml()

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

Member Function Documentation

◆ write_response()

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

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

452{
453 ssOut << "HTTP/1.1 200 OK" << std::endl;
454 ssOut << "content-type: text/html" << std::endl;
455 ssOut << "content-length: " << html.length() << std::endl;
456 ssOut << std::endl;
457 ssOut << html;
458}

References html.

Member Data Documentation

◆ html

const std::string Slic3r::GUI::HttpServer::ResponseHtml::html
private

Referenced by ResponseHtml(), and write_response().


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