Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Express Basics!
You have completed Express Basics!
Preview
A closer look at Express's Response object.
Documentation
Sending Data From Express
If you want to know more about how to use Express to serve JSON-only responses, check the course Build a REST API With Express out on Treehouse.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
While the request object allows the
application to look at the request that
0:00
the client has made,
0:01
the response object offers ways to
shape the response back to the client.
0:03
In this video, we'll use the name
received from the form and
0:09
send it back in a message
that greets the user.
0:12
Before we dive in,
0:15
let's take a look at the response
object from the express documentation.
0:16
Here's the documentation for
the request object.
0:21
Over on the right you can see there's
quite a few different methods that control
0:24
how the app responds to a client.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up