understanding http code example
Example 1: http methods
Get : enables you to retrieve data from server
Post: enables you to add data to an existing
file or resource in a server
Put: lets you replace an existing file or resource
in a server
Delete: lets you delete data from server
Patch:For partial update
Example 2: what is Http
Http Stands for "Hypertext Transfer Protocol."
HTTP is the protocol used to transfer data over the web.
It is part of the Internet protocol suite and defines commands and services used
for transmitting webpage data. ... The HTTP server is typically a web host
running web server software, such as Apache or IIS.
Example 3: http response methods
resource HTTP response method is made up of three
components:
Response Status Code ==> 200, 301, 404, 500
(these are the most common ones)
Response Header Fields ==> Date, Server, LastModified, Content-Type
Response Body ==> This is the data that comes
back to the client from the server.