cookies
Purpose
Sets the cookies to send with the request.Examples
jerseyRequestBuilder.post { uri = "http://example.com" cookies = [ "foo": "bar" } }
Description
The cookies map is used to send cookies with the request. The key of the map is the name of the cookie, and the value can either be aString
or a
Cookie
instance. If a Cookie
is passed, it will be recreated with the name
of the key.