Laravel Advanced - HTTP Client (Pool, Retry, Timeout, Basic Auth, Token Auth, etc.)

preview_player
Показать описание
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:

=== Offer ===

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

===

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

Follow On Facebook

Follow On Twitter

The website with public API endpoints:

Tech stack:
Laravel
PHP

#laravel #php #laraveltip #laratips
Рекомендации по теме
Комментарии
Автор

Thanks man you are so good at laravel 😂. Your channel is like garib haru ko laracasts, in a good way.

jameshello
Автор

hmm, is there any way to use a retry decider middleware like in guzzle?
you should make a tutorial on this.

Andu
Автор

Thanks, keep it up! I know you have query optimization videos on your channel but more video about it will be much appreciated. Thank you.

melihbagceli
Автор

it's weird that the json() method converts the response to a php associative array instead of returning json, thanks for the good content

bashardlaleh
Автор

Hi can you tell us how to pass dynamic multiple request in pool

Amityadav-rihe
Автор

May I know what font are you using on vscode?
Awesome tutorial by the way, thank you!

Автор

Have to send http request to 3 end point concurrently every 2 second, how to do.

vishvish
Автор

Brother what is the best way to store endpoint BASE_URL and how can I fetch that in the controller ?

roshanpandey
Автор

Is it possible to use pool with retry?

igorstephanoespin
Автор

I Pass some data in header but got error 404
Can you help me out of this

raindeveloper
Автор

Do the concurrent request works only for Get methods or Post methods too ??

jigyanssingh
Автор

Maybe next time... Scrape html-dom... and/or js site too.

JACKoPL