1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-01-13 19:56:40 +00:00
kamokan/src/index_response.cpp

22 lines
429 B
C++
Raw Normal View History

2017-04-06 20:27:38 +00:00
#include "index_response.hpp"
namespace tawashi {
IndexResponse::IndexResponse() :
Response("text/html")
{
}
void IndexResponse::on_send (std::ostream& parStream) {
parStream <<
R"(
<form action="http://127.0.0.1:8080/paste.cgi" method="POST" accept-charset="UTF-8">
<textarea name="pastie" cols="80" rows="24"></textarea>
2017-04-06 20:27:38 +00:00
<br>
<button type="submit">tawashi</button>
</br>
</form>
)";
}
} //namespace tawashi