RapidAPI Profile picture
Feb 3 โ€ข 19 tweets โ€ข 4 min read
What exactly is the HTTP-based system.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
HTTP is a communication protocol that establishes the connection between web browsers and web servers.
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

Feb 3
Let's break down the process of building a GraphQL server from scratch.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
Let's start with the theoretical discussion.

Quickly take a look at this thread to get started with GraphQL. ๐Ÿ‘‡๐Ÿป

We are assuming you have Node.js installed on your machine. If you haven't installed it, click on the following link and install it simply.

nodejs.org/en/
Read 20 tweets
Feb 2
What exactly is GraphQL.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
GraphQL is a query language that lets your client request the server to send only the required data.
GraphQL was created by developers at Facebook in 2012.

GraphQL was developed to support the complicated data structures required to show the Facebook News Feed on the mobile application.
Read 18 tweets
Feb 1
What exactly is an API?

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
API is the acronym for Application Programming Interface.

In simple terms, API is an interface that lets your application talk to another application.
API is a set of definitions and protocols that allow technology products and services to communicate.

This may not sound very clear. Let's break it down.
Read 15 tweets
Jan 31
How to make your API secure.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
Building an API is one thing, and securing it is another.

If your API is vulnerable, the user's sensitive information will be at risk.

Hence, it's crucial to deliver a secure API.
If your API is not secure, the attackers can quickly access your network by exploiting vulnerabilities in your APIs.

Before deep-diving into making your API secure, let's first discuss what are some common attacks. ๐Ÿ‘‡๐Ÿป
Read 14 tweets
Jan 31
Top 10 Artificial Intelligence APIs.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
1๏ธโƒฃ Extract Table - DocumentDev

- Extract information from PDF Tables instantly. Using the power of Artificial Intelligence and NLP.

RapidAPI.com/documentdev/apโ€ฆ
2๏ธโƒฃ Sentiments

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

RapidAPI.com/connexun-srl-cโ€ฆ
Read 12 tweets
Jan 27
API development becomes a little easier if you know the correct terms and their correct meaning.

Here, we complied with widely used terms in API development.

Thread ๐Ÿงต
๐Ÿ“Œ API Key

An API key is a unique code that lets you call an API.

The only rule is that these keys must be unique and not easy to guess.

Generally, API keys contain lower case and upper case letters with numbers.
๐Ÿ“Œ API Token

The API token is a unique identifier of an application requesting access to your API.

An API token is a form of authentication similar to a username/password.
Read 17 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(