Commit cf3a79bc authored by wangmingming's avatar wangmingming

处理入参cookie

parent 462befb8
......@@ -2,12 +2,13 @@ package requests
import (
"github.com/wmm1996528/requests/models"
"github.com/wmm1996528/requests/tls"
"github.com/wmm1996528/requests/url"
"net/http"
)
func Request(method, rawurl string, req *url.Request) (*models.Response, error) {
session := NewSession()
session := NewSession(req.TlsProfile | tls.Chrome112)
return session.Request(method, rawurl, req)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment