FastLED 3.9.15
Loading...
Searching...
No Matches

◆ send_text_response()

None test_server.HTTPBinHandler.send_text_response ( self,
str text,
int status_code = 200 )
Send plain text response.

Definition at line 43 of file test_server.py.

43 def send_text_response(self, text: str, status_code: int = 200) -> None:
44 """Send plain text response."""
45 self.send_response(status_code)
46 self.send_header("Content-Type", "text/html; charset=utf-8")
47 self.send_header("Content-Length", str(len(text)))
48 self.end_headers()
49 self.wfile.write(text.encode())
50

References fl::asio::http::Server.send_response().

+ Here is the call graph for this function: