lesson 1 - 2 Flashcards

1
Q

What is http?

A

Hypertext Transfer Protocol

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

How to do request?

A

You can use

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

What are the common http methods?

A
  • Get
  • Post
  • Put
  • Delete
  • Head
  • Options
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the HEAD method?

A
  • It is a request of the headers of a file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the OPTIONS method?

A
  • It asks for the accepted methods of the URL.

- Not all servers supports OPTIONS

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

What are headers in requests and responses in http?

A
  • Headers contain additional data about requests or responses.
  • Some of the data in headers are: Content-Length, Content-Type and Last-Modified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are REST api’s?

A
  • Are api’s that follow a pattern for requests.

- DELETE /persons/Michael

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