{"category":"web","endpoint":"https://setget.net/v1/tools/cookie-parse","examples":[{"input":{"text":"Set-Cookie: sid=abc123; Path=/; HttpOnly; SameSite=None; Max-Age=3600"},"output":{"cookies":[{"domain":null,"expires":null,"http_only":true,"max_age":3600,"name":"sid","partitioned":false,"path":"/","same_site":"None","secure":false,"session":false,"source":"set-cookie","value":"abc123","warnings":["No Secure attribute: the cookie is also sent over unencrypted HTTP.","SameSite=None without Secure: browsers reject this cookie."]}],"count":1}},{"input":{"text":"Cookie: theme=dark; sid=abc123"},"output":{"cookies":[{"name":"theme","source":"cookie","value":"dark"},{"name":"sid","source":"cookie","value":"abc123"}],"count":2},"title":"A request header"}],"input_schema":{"additionalProperties":false,"properties":{"kind":{"default":"auto","description":"Which header the lines are. \"auto\" uses the header name, or guesses from the attributes.","enum":["auto","cookie","set-cookie"],"type":"string"},"text":{"description":"One or more Cookie or Set-Cookie headers, one per line.","examples":["Set-Cookie: sid=abc123; Path=/; HttpOnly; SameSite=None; Max-Age=3600"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["cookie","set-cookie","samesite","httponly","secure","session cookie","parse cookie","max-age"],"related":["http-headers-parse","jwt-decode","url-parse"],"slug":"cookie-parse","summary":"Parse Cookie and Set-Cookie headers into JSON, with warnings about missing security attributes.","tier":"inline","title":"Cookie parser","url":"https://setget.net/tools/cookie-parse"}
