What is HTTP Verbs & CRUD Operation Http define a set of request methods to indicate the desire action...

1

HTTP Verbs

01. HTTP defines a set of request methods to indicate the desired action to be performed for a given resource.

These request methods are referred to to as HTTP Verbs.

Below are the various types of HTTP verbs

GET

The GET method is used to retrieve specific resource. Requests using GET should only retrieve data and should have no other effect on the data.

HEAD

02. Same as GET, but doesn't have a message body in the response. the HEAD method is useful in recovering meta-data that is written according to the headers, without transferring the entire content.

POST

A POST request is utilized to send send data to a server to create a resource, for example, customer information, file upload, etc. usually using HTML Forms.

PUT

03. PUT is similar to POST as it is used to send data to the server to create or update a resource. the difference between it replaces all current representations of the target resource with uploaded content.

DELETE

As it sounds, the DELETE request method is used to delete resources indicated by a specific URL. Making a DELETE request will remove the targeted resource.

CONNECT

04. CONNECT request establishes a tunnel to the server identified by a specific URL. A good example is SSL tunneling.

OPTIONS

The OPTIONS method requests permitted communication options for a given URL or server. A client can specify a URL with this method, or an asterisk(*)to refer to the entire server.

TRACE

05. The TRACE method performs a message loop-back test along the path to the target resource, to provide a useful debugging mechanism.

it allows clients to view whatever message is being received at the other end of the request chain so that they can use the info of testing or diagnostic functions.

PATCH

0.6 The PATCH method is used for making partial changes to an existing resource. the PATCH method provides an entity containing a list of changes to be applied to the resource requested using the URL.

PUT vs PATCH

PUT method uses the request URL to supply a modified version of the requested resource which replaces the original version of the resource, where as the PATCH method supplies a set of instructions to modify the resource.


Post a Comment

1 Comments
Post a Comment
To Top