GrpcRouter
class GrpcRouter extends Router
| internal |
Isolate gRPC routes while retaining Hypervel's normal dispatch machinery.
Methods
Define head metadata for the route, stored through Hypervel's native route metadata API. Provided by hypervel/head.
Validate gRPC route actions before compiling and warming the collection.
Convert a service result into a protocol-owned gRPC response.
Create the middleware pipeline used to dispatch a gRPC route.
Determine whether this router owns the application's global route state.
Details
in
Router at line 50
RouteRegistrar
withHead(string|array|null $title = null, string|null $description = null, string|array|true|null $canonical = null, string|RobotsRule|array|null $robots = null, string|null $themeColor = null, string|null $applicationName = null, string|null $colorScheme = null, string|null $referrer = null, string|null $viewport = null, string|null $appleWebAppTitle = null, bool|null $webAppCapable = null, string|null $appleWebAppStatusBarStyle = null, array|null $og = null, string|array|null $ogImage = null, string|array|null $ogVideo = null, string|array|null $ogAudio = null, array|null $twitter = null, string|array|null $twitterImage = null, string|array|null $preload = null, string|array|null $prefetch = null, string|array|null $preconnect = null, string|array|null $dnsPrefetch = null, array|null $alternates = null, string|array|null $feed = null, string|array|null $icon = null, string|array|null $favicon = null, string|array|null $appleTouchIcon = null, string|array|null $appleTouchStartupImage = null, string|array|null $maskIcon = null, string|array|null $manifest = null, array|null $schema = null, array|null $meta = null, array|null $link = null, array $extensions = [])
Define head metadata for the route, stored through Hypervel's native route metadata API. Provided by hypervel/head.
at line 42
void
syncMiddlewareFrom(Router $router)
| internal |
Synchronize application route middleware before worker warmup.
On the shared gRPC router, the middleware aliases, groups and priority apply to every subsequent gRPC call in the worker.
at line 62
void
compileAndWarm()
Validate gRPC route actions before compiling and warming the collection.
Replaces the route collection and registers protobuf descriptors process-wide; runtime use breaks concurrent gRPC calls.
at line 149
Response
prepareResponse(Request $request, mixed $response)
Convert a service result into a protocol-owned gRPC response.
at line 277
protected Pipeline
newPipeline()
Create the middleware pipeline used to dispatch a gRPC route.
at line 285
protected array
middlewareFor(Route $route)
Resolve user middleware while retaining mandatory protocol handling.
at line 293
protected bool
ownsGlobalRouteState()
Determine whether this router owns the application's global route state.