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. Taking the body is locking the header & status for the response. This call has the have effect, that endpoints return the content which is sent into this writer and ignore the normal main function return.