Laravel Advanced - HTTP Client (Pool, Retry, Timeout, Basic Auth, Token Auth, etc.)
Laratips Laratips
17.7K subscribers
15,230 views
0

 Published On Aug 8, 2021

In this video, I have explained every aspect of the Laravel HTTP client that comes by default on Laravel. You can send HTTP requests using this HTTP Client.

=== Important Links ===

Fonts, extensions I use, and Support Laratips links:
https://bit.ly/m/laratips

=== Offer ===

Laravel Hosting: https://platform.cloudways.com/signup...

Get up to Free Hosting by using code "LARATIPS" and you get $15 as credit which can last almost a month.

Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr

====================== Support ======================

If you want me to continue making this kind of video for free on YouTube, then you can support the channel

eSewa ID: 9843632084

Wise Link: https://bit.ly/3dnBRmX
Wise email: [email protected]

===

00:00 Intro to Laravel HTTP Client
00:40 Start testing different API endpoints
00:58 Testing 200 status code API endpoint
03:47 Testing 201 status code API endpoint
04:31 Testing 401 status code API endpoint
05:06 Testing 500 status code API endpoint
05:22 Passing Headers In Laravel HTTP Client
06:27 Debugging with HTTP Client
07:06 Passing parameters to the API endpoint
07:29 Directly accessing the response as an array
08:06 Throwing exception on error
09:33 Retry
11:05 Timeout
12:29 Concurrent requests or Pool
14:05 Testing speed of Concurrent requests with Normal HTTP Requests
16:01 Accessing API with Basic Auth
17:30 Accessing API with Token Auth
18:45 Accept Json Header shortcut implementation

Social Media Links:

Let's be friends
  / aashish_dhamala  

Follow On Facebook
  / laratipsofficial  

Follow On Twitter
  / laratips1  

The website with public API endpoints:
http://httpbin.org/

Tech stack:
Laravel
PHP

#laravel #php #laraveltip #laratips

show more

Share/Embed