-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80010e0
commit f4ce1f3
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Twirp; | ||
|
||
use Psr\Http\Server\RequestHandlerInterface; | ||
|
||
interface ServerInterface extends RequestHandlerInterface | ||
{ | ||
/** | ||
* Returns the base service path, in the form: "/<prefix>/<package>.<Service>/" | ||
* that is everything in a Twirp route except for the <Method>. This can be used for routing, | ||
* for example to identify the requests that are targeted to this service in a mux. | ||
*/ | ||
public function getPathPrefix(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters