Responses

You may have noticed that the return type of a handler appears to be arbitrary, and that’s because it is! A value of any type that implements the Responder trait can be returned, including your own. In this section, we describe the Responder trait as well as several useful Responders provided by Rocket. We’ll also briefly discuss how to implement your own Responder.