Skip to content

Commit

Permalink
response 增加获取cookie的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jan 7, 2025
1 parent 1338d3d commit 4a357d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/think/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,14 @@ public function getCode(): int
{
return $this->code;
}

/**
* 获取Cookie对象
* @access public
* @return Cookie
*/
public function getCookie()
{
return $this->cookie;
}
}

0 comments on commit 4a357d0

Please sign in to comment.