Difference between HTTP Client and REST Client

19,563

Solution 1

enter image description here

To answer my own question:

  • HTTP client is a client that is able to send a request to and get a response from the server in HTTP format

  • REST client is a client that is designed to use a service from a server and this service is RESTful.

  • in most cases that I saw on the web, what is called REST client is actually a HTTP client, since it uses HTTP only and can communicate with a HTTP server which provides services that are not RESTful

Solution 2

I think your second bullet point is true, beside it is not about functionalities, but about semantics. So REST describes how HTTP should be used, expressed by the data transferred (Links). Both (HTTP and REST) are not bound to a specific format like XML or JSON. Albeit JSON is polular, you could still transfer plain old HTML.

Have a look at What is the difference between HTTP and REST?

Share:
19,563
displayname
Author by

displayname

Updated on July 02, 2022

Comments

  • displayname
    displayname almost 2 years

    I am a bit confused, whether there is any difference between the terms "HTTP client" and "REST Client"?

    For example, I have found some libraries for Android that look like they were designed for consuming REST services, yet they call themselves an "HTTP client" (Retrofit) or "HTTP library" (Volley).

    There is also for example a library that call itself "HTTP/REST client library" (jus for Android).

    • So, is "HTTP client" and "REST Client" the same thing?

    • Or is "REST Client" is an HTTP client with some additional functionalities?

    • What about JSON/XML parser? Are they considered a part of REST clients but not HTTP client?

    I will really appreciate if someone could clarify this matter.

  • M.ghorbani
    M.ghorbani over 2 years
    This is really confusing and I could not find the right answer anywhere. Thanks for sharing
  • Admin
    Admin over 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.