mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-01-13 19:56:40 +00:00
22 lines
420 B
C++
22 lines
420 B
C++
|
#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" method="POST" accept-charset="UTF-8">
|
||
|
<textarea name="tawashi" cols="80" rows="24"></textarea>
|
||
|
<br>
|
||
|
<button type="submit">tawashi</button>
|
||
|
</br>
|
||
|
</form>
|
||
|
)";
|
||
|
}
|
||
|
} //namespace tawashi
|
||
|
|