Skip to content

Commit 7e2b198

Browse files
committed
updated interface
1 parent abe5f00 commit 7e2b198

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/AsyncMiddlewareInterface.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
namespace Nazg\Http\Server;
1717

18-
use type HH\Lib\Experimental\IO\WriteHandle;
18+
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
1919
use type Facebook\Experimental\Http\Message\ResponseInterface;
2020
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
2121

@@ -27,7 +27,7 @@ use type Facebook\Experimental\Http\Message\ServerRequestInterface;
2727
interface AsyncMiddlewareInterface {
2828

2929
public function processAsync(
30-
WriteHandle $writeHandle,
30+
CloseableWriteHandle $writeHandle,
3131
ServerRequestInterface $request,
3232
AsyncRequestHandlerInterface $handler
3333
): Awaitable<ResponseInterface>;

src/AsyncRequestHandlerInterface.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
namespace Nazg\Http\Server;
1717

18-
use type HH\Lib\Experimental\IO\WriteHandle;
18+
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
1919
use type Facebook\Experimental\Http\Message\ResponseInterface;
2020
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
2121

@@ -26,7 +26,7 @@ use type Facebook\Experimental\Http\Message\ServerRequestInterface;
2626
interface AsyncRequestHandlerInterface {
2727

2828
public function handleAsync(
29-
WriteHandle $writeHandle,
29+
CloseableWriteHandle $writeHandle,
3030
ServerRequestInterface $request
3131
): Awaitable<ResponseInterface>;
3232
}

src/MiddlewareInterface.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
namespace Nazg\Http\Server;
1717

18-
use type HH\Lib\Experimental\IO\WriteHandle;
18+
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
1919
use type Facebook\Experimental\Http\Message\ResponseInterface;
2020
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
2121

@@ -36,7 +36,7 @@ interface MiddlewareInterface {
3636
* @return ResponseInterface
3737
*/
3838
public function process(
39-
WriteHandle $writeHandle,
39+
CloseableWriteHandle $writeHandle,
4040
ServerRequestInterface $request,
4141
RequestHandlerInterface $handler
4242
): ResponseInterface;

src/RequestHandlerInterface.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
namespace Nazg\Http\Server;
1717

18-
use type HH\Lib\Experimental\IO\WriteHandle;
18+
use type HH\Lib\Experimental\IO\CloseableWriteHandle;
1919
use type Facebook\Experimental\Http\Message\ResponseInterface;
2020
use type Facebook\Experimental\Http\Message\ServerRequestInterface;
2121

@@ -33,7 +33,7 @@ interface RequestHandlerInterface {
3333
* @return ResponseInterface
3434
*/
3535
public function handle(
36-
WriteHandle $writeHandle,
36+
CloseableWriteHandle $writeHandle,
3737
ServerRequestInterface $request
3838
): ResponseInterface;
3939
}

0 commit comments

Comments
 (0)