function setCookie
Swift
func setCookie(name: String, value: String, options: CookieOptions = CookieOptions())
Queue a Set-Cookie header to be included in the HTTP response.
- For HTTP sessions the header is sent with the RPC reply.
- For WebSocket sessions the cookie is queued but there is no per-call response envelope; use an HTTP RPC call to issue new tokens instead.
- No-op for native transports (TCP / SHM).
nprpc_swift/Sources/NPRPC/HttpAuth.swift:77