Your first HTTP Server Flashcards

1
Q

Use Express to handle a HTTP POST method

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use Express to handle a HTTP GET method

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Set the content type of an HTTP response to json, in Node and Express

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Set the content type of an HTTP response to html, in Node and Express.

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Set the content type of an HTTP response to text, in Node and Express

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe what Express Middleware is

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe why the body-parser package is needed in Express

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Use curl to send HTTP requests to an HTTP server

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe the use cases for the HTTP status codes 200, 404, 500.

A

. ( Note you can see a quick preview of all these status codes right inside your CLI by writing code that gets the http module and console logs it )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Render HTML using ejs templates on Node

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Respond to an HTTP request with HTML from a template

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly