# https **Repository Path**: xgotool/https ## Basic Information - **Project Name**: https - **Description**: HTTPS网络请求仓库 - **Primary Language**: Go - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-12 - **Last Updated**: 2023-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # https #### 介绍 HTTPS网络请求仓库 #### 依赖特点 1. 基于Option模式进行选项式传参 2. #### 使用方法 ``` go // 设置默认超时时间 https.SetDefaultTimeOut(time.Second * 20) // GET请求 curl := https.New("https://baidu.com").Get() if curl.Error != nil { // 错误处理 } // 直接使用New进行创建 https.New("https://baidu.com",https.WithHttpsContinue(true))...... // 使用WithOption进行创建 https.New("https://baidu.com").WithOption(https.WithHttpsContinue(true))...... ```