print()
behaves like a regular print(). It will add '\n'
to the end.
If you prefer bytes-oriented and want to be more efficient, you can use response.write(). This method is async therefore it should be awaited.
# hello.py
from httpout import response
# ...
async def main():
await response.write(b'Hello, ')
await response.write(b'World!')
run(main())
Or wrapped with run() or wait() if you want to use it outside the async context:
# hello.py
from httpout import response
# ...
wait(response.write(b'Hello, '))
wait(response.write(b'World!'))