How to develop a productive HTTP client in Golang (Go)

所在平台: Udemy

课程主页: https://www.udemy.com/course/how-to-develop-a-productive-http-client-in-golang-go/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:如何在Golang中开发高效的HTTP客户端 课程概述:你是否曾经在Go程序中调用过REST API?你是实现了自己的HTTP客户端,还是使用了数千个库中的某个?你是否知道你的HTTP客户端在后台做了什么?在本课程中,我们将从基础开始!我们将通过深入了解请求和响应对象,回顾基本的HTTP调用是如何进行的。我们将编写一个基本的HTTP客户端来执行HTTP请求,并在生产应用中使用它。 我们在这个过程中会遇到哪些问题?这种方法能否扩展我们的应用?当然不能!因此,我们将创建一个HTTP客户端库,提供以下功能: - 快速、可靠且无摩擦的HTTP连接。 - 支持所有HTTP方法:GET、POST、PUT、DELETE、PATCH等。 - 并发安全的HTTP客户端,可以放心使用而无需担心性能问题。 - 内容类型管理与优化。 - 内置的模拟功能。 - 一种干净的接口,使你可以在不依赖集成测试功能的情况下进行单元测试。 - 强大的实现,无需任何外部依赖。 - 完全可定制的接口:超时设置、传输层、自定义HTTP客户端及其他众多实用功能。 - 生产就绪的库! 如果你希望在代码中集成第三方REST API,你需要执行HTTP调用。在考虑其他可能强迫你使用不同依赖项来运行、测试和扩展代码的选项之前,请务必关注本课程!正如Robert Pike所说:“少量复制远胜于少量依赖”。在本课程中,我们不仅摆脱了依赖,还消除了复制。我们仅使用Go的标准库来设计和开发自己的HTTP客户端。 这个客户端将成为我们之后构建所有应用的基础,帮助我们的业务快速扩展和增长。查看可用的预览课程,以了解课程的结构和内容。我相信你会喜欢它的!如果你有任何疑问,可以查看我的其他课程,了解我的学生们对此的评价!期待在课程中见到你!

课程评论(0条)

课程详情

Have you ever called a REST API from your Go program? Did you implemented your own HTTP client or did you ended up using some of the thousand libraries out there? Do you know what your HTTP client is doing in the background?In this course we're starting from scratch! We're going to remember how a basic HTTP call looks like by digging into the request & response objects. We're going to write a basic HTTP client to perform HTTP requests and then use it in productive applications. What issues do we have? Can we scale our applications by following this approach? Of course not! That's why we're creating an HTTP client library that provides:Fast, reliable and friction-free HTTP connections.Support for all HTTP methods: GET, POST, PUT, DELETE, PATCH and more!A Concurrency-Safe HTTP client that you can use without worrying about performance.Content type management and optimization.Mocking features out of the box.A clean interface in case you want to unit test your code without relying on integration testing features.A robust implementation so you won't need any external dependency whatsoever.Completely customizable interface: timeouts, transport layer, custom HTTP client and lots of useful features.A library that is PRODUCTION-READY!If you're looking to integrate a 3rd party REST APIs in your code, you'll need to perform an HTTP call to it. Make sure you take a look at this course before even considering alternatives out there that will force you to use different dependencies for running, testing and extending your code! As Robert Pike says: "A little copying is much better than a little dependency". In this course we're not only getting rid of the dependencies but we're also getting rid of the copying. We're not using anything more than the Go's standard library to design & develop our own HTTP client.This client will the baseline for all of the applications we're going to build later, making our business scale and grow as fast as we can Go.Take a look at the preview lessons you have available to have an idea about the structure and content of the course. I know you're going to enjoy it! If you have any doubt, take a look at my other courses and see what my students have to say!See you on the other side!

课程标签

0人关注该课程

主题相关的课程