HTTP Flashcards
HTTP
Hypertext Transfer Protocol
What is Hypertext Transfer Protocol?
The mechanism through which data is requested and provided on the world wide web.
The information sent by the client is called the _____.
request
- GET:
- DELETE:
- PUT:
- POST:
- GET: get the specified source.
- DELETE: delete a resource.
- PUT: replace it.
- POST: Send information to it.
What is a ‘resource’?
may be anything that can be transferred as if it is a file.
Which type of programming refers to programs that run on continuous loop to divert blocking operations to different handlers?
a. Synchronous programming
b. Asynchronous programming
b. Asynchronous programming.
• It runs on a loop and defers blocking operations to handlers in order to maintain a running state.
What are the three states that an es6 promise can have?
Pending, Fulfilled, Rejected
GET /17_http.html HTTP/1.1: What does the first word, GET, stand for?
GET stands for the method of request.
GET /17_http.html HTTP/1.1: What does /17_http.html stand for?
/17_http.html is the path of the resource the request applies to.
/17_http.html: What does HTTP/1.1 stand for?
HTTP/1.1 indicates the version of the HTTP protocol it is using.
Status code that starts with 2 indicate…
the request has succeeded.
Status code that starts with 4 indicate…
the request has failed.
Promises handle ________ functions in es6 by representing values that will at some point return in the future.
asynchronous
___ method retrieves data and has no secondary effect.
GET
___ method sends data to a server to add resources.
POST