镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 06:26:46 +00:00
tests: self-signed TLS certificates
这个提交包含在:
16
tests/httpClient.go
普通文件
16
tests/httpClient.go
普通文件
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/tuna/tunasync/internal"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cfg, err := internal.GetTLSConfig("rootCA.crt")
|
||||
fmt.Println(err)
|
||||
var msg map[string]string
|
||||
resp, err := internal.GetJSON("https://localhost:5002/", &msg, cfg)
|
||||
fmt.Println(err)
|
||||
fmt.Println(resp)
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户