Struct ::exo::net::Response

Overview

An Connection to an SMTP server to send emails

Methods

Receive all headers

fn header(self, name: String) -> Option

Try to return a specific header

fn set_header(self, name: String, value: String) -> Result

Try to set a specific header

fn body(self) -> Option

Returns the body as exo::Writer when available. The body can only be received once.