Skip to content

Commit

Permalink
QA: Apidoc types
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 19, 2025
1 parent 9d97940 commit e24aedd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/php/xp/web/srv/ForwardRequests.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(Socket $backend) {
* @see https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Transfer-Encoding
* @param io.streams.InputStream $stream
* @param peer.Socket $target
* @return void
* @return iterable
*/
private function transmit($stream, $target) {
if (null === $stream) {
Expand All @@ -47,7 +47,7 @@ private function transmit($stream, $target) {
* Handle client data
*
* @param peer.Socket $socket
* @return void
* @return iterable
*/
public function handleData($socket) {
static $exclude= ['Remote-Addr' => true];
Expand Down
5 changes: 4 additions & 1 deletion src/main/php/xp/web/srv/Protocol.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function initialize() {
* Handle client connect
*
* @param peer.Socket $socket
* @return void
*/
public function handleConnect($socket) {
$this->protocols[spl_object_id($socket)]= current($this->protocols);
Expand All @@ -55,7 +56,7 @@ public function handleConnect($socket) {
* Handle client data
*
* @param peer.Socket $socket
* @return void
* @return iterable
*/
public function handleData($socket) {
$handle= spl_object_id($socket);
Expand All @@ -77,6 +78,7 @@ public function handleData($socket) {
* Handle client disconnect
*
* @param peer.Socket $socket
* @return void
*/
public function handleDisconnect($socket) {
$handle= spl_object_id($socket);
Expand All @@ -92,6 +94,7 @@ public function handleDisconnect($socket) {
*
* @param peer.Socket $socket
* @param lang.XPException $e
* @return void
*/
public function handleError($socket, $e) {
$handle= spl_object_id($socket);
Expand Down

0 comments on commit e24aedd

Please sign in to comment.