Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1de31ad
Update utils.go
wuliao6688 Jan 15, 2024
1287495
Create go-ossf-slsa3-publish.yml
wuliao6688 Jan 15, 2024
8a71b5b
Update go.mod
wuliao6688 Jan 15, 2024
9ada7b9
Update go.mod
wuliao6688 Jan 15, 2024
726aa75
Update tlsextensions-test.go
wuliao6688 Jan 15, 2024
8593110
Update session-test.go
wuliao6688 Jan 15, 2024
4a448a7
Update postForm-test.go
wuliao6688 Jan 15, 2024
be8dbb2
Update params-test.go
wuliao6688 Jan 15, 2024
8e2fdc4
Update orderHeader-test.go
wuliao6688 Jan 15, 2024
f2d0dd1
Update json-test.go
wuliao6688 Jan 15, 2024
55acade
Update ja4-test.go
wuliao6688 Jan 15, 2024
e78833f
Update ja3-test.go
wuliao6688 Jan 15, 2024
ead1061
Update http2settings-test.go
wuliao6688 Jan 15, 2024
3317703
Update get-test.go
wuliao6688 Jan 15, 2024
007830c
Update encode-test.go
wuliao6688 Jan 15, 2024
11b1871
Update data-test.go
wuliao6688 Jan 15, 2024
49f6232
Update custom_settings.go
wuliao6688 Jan 15, 2024
bc2e64b
Update crypto-sha-test.go
wuliao6688 Jan 15, 2024
15f04d3
Update crypto-rc4-test.go
wuliao6688 Jan 15, 2024
521a082
Update crypto-md5-test.go
wuliao6688 Jan 15, 2024
97f406b
Update crypto-hmac.go
wuliao6688 Jan 15, 2024
0c8fb12
Update cookies-test.go
wuliao6688 Jan 15, 2024
15a4b35
Update body-test.go
wuliao6688 Jan 15, 2024
8ffcfa0
Update api.go
wuliao6688 Jan 15, 2024
b9d32b0
Update sessions.go
wuliao6688 Jan 15, 2024
3c0c306
Update version.go
wuliao6688 Jan 15, 2024
d72cb72
Update Request.go
wuliao6688 Jan 15, 2024
530ca72
Update Values.go
wuliao6688 Jan 15, 2024
a4d0920
Update PrepareRequest.go
wuliao6688 Jan 15, 2024
5f2e035
Update Request.go
wuliao6688 Jan 15, 2024
26246c3
Update Response.go
wuliao6688 Jan 15, 2024
7db4b0e
Update Request.go
wuliao6688 Jan 15, 2024
dcb415b
Update utils.go
wuliao6688 Jan 17, 2024
89b3a68
Update utils.go
wuliao6688 Jan 17, 2024
b512d6c
Update utils.go
wuliao6688 Jan 17, 2024
c0eca2c
Update utils.go
wuliao6688 Jan 17, 2024
7ae91f0
Update utils.go
wuliao6688 Jan 17, 2024
9ea0050
Update utils.go
wuliao6688 Jan 17, 2024
8808020
Update utils.go
wuliao6688 Jan 17, 2024
da8ce14
Update utils.go
wuliao6688 Jan 17, 2024
14d4a97
Update utils.go
wuliao6688 Jan 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/go-ossf-slsa3-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 此工作流程使用未经 GitHub 认证的操作。
# 它们由第三方提供并受
# 单独的服务条款、隐私政策和支持
# 文档。

# 此工作流程允许您使用 SLSA3 兼容的构建器编译 Go 项目。
# 此工作流程将生成一个所谓的“来源”文件,描述步骤
# 执行这些操作是为了生成最终的二进制文件。
# 该项目是 OpenSSF (openssf.org) 的一项倡议,开发于
# https://github.com/slsa-framework/slsa-github-generator。
# 来源文件可以使用 https://github.com/slsa-framework/slsa-verifier 进行验证。
# 有关 SLSA 及其如何改进供应链的更多信息,请访问 slsa.dev。

姓名:名称: SLSA Go 发行者
在:
工作流程_调度:
发布:
类型:[已创建]]

permissions: 权限:只读

jobs:
# =================================================== =================================================== =======================================# ========================================================================================================================================
# 先决条件:在项目的根目录中创建一个 .slsa-goreleaser.yml。# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
# 请参阅 https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file 中的格式# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file
#=================================================== =================================================== =======================================#=========================================================================================================================================
build:
permissions:
id-token: id-token:写#来签名。# To sign.
contents: 内容:写入 # 上传发布资产。# To upload release assets.
actions: actions: read # 读取工作流程路径。# To read workflow path.
uses: 使用:slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0
with:
go-version: 1.17
# =================================================== =================================================== =========# =============================================================================================================
# 可选:更多选项请参见 https://github.com/slsa-framework/slsa-github-generator#golang-projects# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
# =============================================================================================================

6 changes: 3 additions & 3 deletions api.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package requests

import (
"github.com/wangluozhe/requests/models"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests/models"
"github.com/760644586/requests/url"
"net/http"
)

Expand Down Expand Up @@ -46,4 +46,4 @@ func Connect(rawurl string, req *url.Request) (*models.Response, error) {

func Trace(rawurl string, req *url.Request) (*models.Response, error) {
return Request(http.MethodTrace, rawurl, req)
}
}
4 changes: 2 additions & 2 deletions examples/body-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/cookies-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/crypto-hmac.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/utils"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/crypto-md5-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/utils"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/crypto-rc4-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/utils"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/crypto-sha-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/utils"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"
http "github.com/wangluozhe/chttp"
"github.com/wangluozhe/requests/transport"
"github.com/760644586/requests/transport"
"io"
"log"
"strings"
Expand Down
4 changes: 2 additions & 2 deletions examples/data-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/encode-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/utils"
)

func main() {
Expand Down Expand Up @@ -37,4 +37,4 @@ func main() {
fmt.Println(escape)
unescape := utils.UnEscape(escape)
fmt.Println(unescape)
}
}
4 changes: 2 additions & 2 deletions examples/get-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions examples/http2settings-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package main

import (
"fmt"
http "github.com/wangluozhe/chttp"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/transport"
"github.com/wangluozhe/requests/url"
http "github.com/760644586/chttp"
"github.com/760644586/requests"
"github.com/760644586/requests/transport"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ja3-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions examples/ja4-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package main

import (
"fmt"
http "github.com/wangluozhe/chttp"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/transport"
"github.com/wangluozhe/requests/url"
http "github.com/760644586/chttp"
"github.com/760644586/requests"
"github.com/760644586/requests/transport"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/json-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/orderHeader-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package main

import (
"fmt"
http "github.com/wangluozhe/chttp"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
http "github.com/760644586/chttp"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/params-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/postForm-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/session-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/wangluozhe/requests"
"github.com/760644586/requests"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/tlsextensions-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"fmt"
http "github.com/wangluozhe/chttp"
"github.com/wangluozhe/requests"
"github.com/wangluozhe/requests/transport"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests"
"github.com/760644586/requests/transport"
"github.com/760644586/requests/url"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/wangluozhe/requests
module github.com/760644586/requests

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions models/PrepareRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"github.com/wangluozhe/chttp"
"github.com/wangluozhe/chttp/cookiejar"
"github.com/wangluozhe/requests/url"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/url"
"github.com/760644586/requests/utils"
"io"
"io/ioutil"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion models/Request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
import (
"github.com/wangluozhe/chttp"
"github.com/wangluozhe/chttp/cookiejar"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests/url"
)

type Request struct {
Expand Down
2 changes: 1 addition & 1 deletion models/Response.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"github.com/bitly/go-simplejson"
"github.com/wangluozhe/chttp"
"github.com/wangluozhe/requests/url"
"github.com/760644586/requests/url"
"io"
)

Expand Down
8 changes: 4 additions & 4 deletions sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/wangluozhe/chttp"
"github.com/wangluozhe/chttp/cookiejar"
"github.com/wangluozhe/chttp/http2"
"github.com/wangluozhe/requests/models"
ja3 "github.com/wangluozhe/requests/transport"
"github.com/wangluozhe/requests/url"
"github.com/wangluozhe/requests/utils"
"github.com/760644586/requests/models"
ja3 "github.com/760644586/requests/transport"
"github.com/760644586/requests/url"
"github.com/760644586/requests/utils"
"io/ioutil"
"log"
url2 "net/url"
Expand Down
Loading