7. What types of requests do you know?

Types of HTTP requests are:

  • GET: Retrieve data.
  • POST: Create new resources.
  • DELETE: Delete resources.
  • PUT: Update or create resources if they do not exist.
  • PATCH: Partially update resources.
  • OPTIONS: Check which methods are allowed when querying another domain (preflight request). The browser sends a request with headers:
    • Access-Control-Request-Method
    • Origin If the server allows this origin and method, it returns a response with headers:
    • Access-Control-Allow-Origin: Allowed origin.
    • Access-Control-Allow-Methods: Allowed methods. Finally, the requested request is executed.
devFlipCards 2024

Do you accept cookies?

Cookies are small amounts of data saved locally on you device, which helps our website - it saves your settings like theme or language. It helps in adjusting ads and in traffic analysis. By using this site, you consent cookies usage.