Everything you need to know about HTTP-based systems.

It is a communication protocol that establishes the connection between web browsers and web servers.

Thread πŸ§΅πŸ‘‡πŸ»
HTTP is entirely based on the client-server model, where the client initiates the request then waits until it receives a response from the server.
Typically, there are 3 main components in the HTTP-based system. πŸ‘‡πŸ» Components of an HTTP-based system.
The client can initiate the request using HTTP request methods.

πŸ“Œ HTTP request methods are the actions initiated from the client-side to get the desired resource.
There are 9 HTTP request methods:

- GET
- PUT
- POST
- HEAD
- TRACE
- PATCH
- DELETE
- OPTIONS
- CONNECT
But there are four widely used HTTP verbs:

πŸ“„ GET (read existing data)
πŸ“² POST (create a new response or data)
♻️ PATCH (update the data)
πŸ—‘οΈ DELETE (delete the data) Widely used HTTP request methods
Check out this thread for a detailed explanation of each and every HTTP verb.

There are three main characteristics of HTTP Request Methods:

1. Safe
2. Idempotent
3. Cacheable
πŸ“Œ Safe

We can call an HTTP request method safe if it doesn't affect the server's state.

The safe methods request the server to send data without performing any modification to the original data. Hence safe methods accomplish read-only operations.
πŸ“Œ Idempotent

Idempotent methods have no side effects on the server. We can call them in a row, and they guarantee that they will not affect the server state (except for keeping statistics).

GET, HEAD, OPTIONS, PUT, DELETE, and TRACE methods are idempotent.
πŸ“Œ Cacheable

As the term suggests, we can call HTTP response methods cacheable if it is possible to cache the response for later use.
Moving forward, what if the client or server wants to send an extra bit of information through request or respectively?

Here HTTP headers come into play. πŸ‘‡πŸ»
The HTTP headers are divided into four categories:

1️⃣ Request headers: Client to Server

2️⃣ Response headers: Server to Client

3️⃣ Representation headers: Information about the body of the resource

4️⃣ Payload headers: Information about the payload data
We have a well-written thread on HTTP headers. Please give it a read. πŸ‘‡πŸ»

The next thing we have is HTTP response status codes.

πŸ”Ή Informational (100–199)
πŸ”Ή Successful (200–299)
πŸ”Ή Redirects (300–399)
πŸ”Ή Client errors (400–499)
πŸ”Ή Server errors (500–599) HTTP 1xx Informational Responses Successful HTTP Status Responses (2xx) HTTP Redirection Responses (3xx) HTTP Client Error Responses (4xx)
Server Error Responses (5xx) πŸ‘‡πŸ» Server Error Responses (5xx)
In this thread, we have explained all the status codes in detail.

And that's pretty much about it for this thread.

We hope you find this helpful. If so, share it with your connections. πŸ˜‰

Also, visit RapidAPI Hub(RapidAPI.com/hub?utm_source…) for more than 35,000 excellent APIs.

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with RapidAPI

RapidAPI Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Rapid_API

29 Oct
Introduction to CORS

CORS is an HTTP-based mechanism that lets you request data from one URL to a different URL.

Let's talk about it in a bit more detail. πŸ§΅πŸ‘‡πŸ»
CORS stands for Cross-Origin Resource Sharing.

Half of the definition is clear by the abbreviation. CORS allows a server to share resources with browsers having different origins.
Let's try to understand cross-origin requests via an example:

Suppose you're making an HTTP request from "a .com" to "b .com". That's a cross-origin request.
Read 10 tweets
28 Oct
Here are Top 5 Image Search and Image Recognition APIs you can use in your next project.

Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ Imgur

- Imgur is an online image sharing and image hosting service. Imgur’s API exposes the entire Imgur infrastructure via a standardized programmatic interface.

πŸ”— RapidAPI.com/imgur/api/imgu…

πŸ“ˆ Popularity: 9.9/10
πŸ•› Latency: 251ms
βœ… Service Level: 100%
2️⃣ Web Search

- Billions of webpages, images and news with a single API call.

πŸ”— RapidAPI.com/contextualwebs…

πŸ“ˆ Popularity: 9.8/10
πŸ•› Latency: 1,634ms
βœ… Service Level: 99%
Read 6 tweets
27 Oct
Building an Artificial Intelligent application is a tedious task.

We bring you the top 5 Artificial Intelligence APIs to build excellent full-stack applications.

A Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ BOTlibre

- BOT libre allows you to create your artificial intelligent chatbot, train them, and share them with others.

πŸ”— RapidAPI.com/paphus/api/bot…

πŸ“ˆ Popularity: 8.4/10
πŸ•§ Latency: 1,128ms
βœ… Service Level: 100%
2️⃣ Sentiments

- Sentiments API returns the sentiment score of any given text.

πŸ”— RapidAPI.com/connexun-srl-c…

πŸ“ˆ Popularity: 6.1/10
πŸ•§ Latency: 772ms
βœ… Service Level: 92%
Read 6 tweets
27 Oct
A quick Introduction to API πŸ–‡οΈ

The following ten tweets will give you an agile intro to API if you're new to the API development world.

A Thread πŸ§΅πŸ‘‡πŸ»
πŸ“Œ Definition

API is the acronym for

Application
Programming
Interface

API is a set of definitions and protocols that allow two computers to talk to each other.
πŸ“Œ Real-time example of an API

Suppose you're building an app in which you need to validate the users' email id.

Steps you can do so πŸ‘‡πŸ»

- Check the format of the string (does it have an @ sign?)
- Ping domain to validate running to the email server
- Check blocklists, etc
Read 13 tweets
26 Oct
You must have heard of the term RESTful API.

Let's try to get a quick introduction to the REST API in the following ten tweets.

A Thread πŸ§΅πŸ‘‡πŸ»
Before jumping onto REST

An API is an Application Programming Interface that lets you connect two computers, where one computer or application requests the data from the server.
RESTful APIs are the most famous type of API.

REST APIs are APIs that follow standardized principles, properties, and constraints.

You can access resources in the REST API using HTTP verbs. πŸ‘‡πŸ»
Read 12 tweets
25 Oct
Top 5 Finance APIs you can use in your next project.

A Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ Alpha Vantage

- The simplest and most effective way to receive stock, ETF, forex, technical indicators, and cryptocurrency data.

πŸ”— rapidapi.com/alphavantage/a…

πŸ“ˆ Popularity: 9.9/10
πŸ•› Latency: 577ms
βœ… Service Level: 100%
2️⃣ Currency Converter

- Provides exchange rates based on the official bank's data.

πŸ”— rapidapi.com/natkapral/api/…

πŸ“ˆ Popularity: 9.8/10
πŸ•› Latency: 173ms
βœ… Service Level: 100%
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(