mbedtls_ssl_write() will always write the request here in one go, but it's good to have correct patterns in examples.