Skip to content

Commit

Permalink
Add get http code and message methods
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBubu committed Nov 21, 2021
1 parent 4600feb commit e8af0e6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Reponse/Reponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,24 @@ public function send(): void
{
echo $this->content;
}

/**
* Return http cpde
*
* @return integer
*/
public function getHttpCode(): int
{
return $this->httpCode;
}

/**
* Return http message
*
* @return string
*/
public function getHttpMessage(): string
{
return $this->message;
}
}

0 comments on commit e8af0e6

Please sign in to comment.