lesson 1 - 2 Flashcards
1
Q
What is http?
A
Hypertext Transfer Protocol
2
Q
How to do request?
A
You can use
- XHR
- Fetch
3
Q
What are the common http methods?
A
- Get
- Post
- Put
- Delete
- Head
- Options
4
Q
What is the HEAD method?
A
- It is a request of the headers of a file
5
Q
What is the OPTIONS method?
A
- It asks for the accepted methods of the URL.
- Not all servers supports OPTIONS
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
7
Q
What are REST api’s?
A
- Are api’s that follow a pattern for requests.
- DELETE /persons/Michael