add Cookie struct

This commit is contained in:
Nite07 2024-12-04 21:25:31 +08:00
parent 662e1dc6e5
commit f6469471bb

View File

@ -16,8 +16,7 @@ type Request struct {
SiteKey string `json:"siteKey"`
}
type Session struct {
Cookies []struct {
type Cookie struct {
Name string `json:"name"`
Value string `json:"value"`
Domain string `json:"domain"`
@ -32,7 +31,10 @@ type Session struct {
SameParty bool `json:"sameParty"`
SourceScheme string `json:"sourceScheme"`
PartitionKey string `json:"partitionKey"`
} `json:"cookies"`
}
type Session struct {
Cookies []Cookie `json:"cookies"`
Headers map[string]string `json:"headers"`
Code int `json:"code"`
}