class GrpcRouter extends Router

internal  
 

Isolate gRPC routes while retaining Hypervel's normal dispatch machinery.

Methods

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.

from  Router
void
syncMiddlewareFrom(Router $router)

Synchronize application route middleware before worker warmup.

void
compileAndWarm()

Validate gRPC route actions before compiling and warming the collection.

Response
prepareResponse(Request $request, mixed $response)

Convert a service result into a protocol-owned gRPC response.

newPipeline()

Create the middleware pipeline used to dispatch a gRPC route.

array
middlewareFor(Route $route)

Resolve user middleware while retaining mandatory protocol handling.

bool
ownsGlobalRouteState()

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.

Parameters

string|array|null $title
string|null $description
string|array|true|null $canonical
string|RobotsRule|array|null $robots
string|null $themeColor
string|null $applicationName
string|null $colorScheme
string|null $referrer
string|null $viewport
string|null $appleWebAppTitle
bool|null $webAppCapable
string|null $appleWebAppStatusBarStyle
array|null $og
string|array|null $ogImage
string|array|null $ogVideo
string|array|null $ogAudio
array|null $twitter
string|array|null $twitterImage
string|array|null $preload
string|array|null $prefetch
string|array|null $preconnect
string|array|null $dnsPrefetch
array|null $alternates
string|array|null $feed
string|array|null $icon
string|array|null $favicon
string|array|null $appleTouchIcon
string|array|null $appleTouchStartupImage
string|array|null $maskIcon
string|array|null $manifest
array|null $schema
array|null $meta
array|null $link
array $extensions

Return Value

RouteRegistrar

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.

Parameters

Router $router

Return Value

void

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.

Return Value

void

at line 149
Response prepareResponse(Request $request, mixed $response)

Convert a service result into a protocol-owned gRPC response.

Parameters

Request $request
mixed $response

Return Value

Response

at line 277
protected Pipeline newPipeline()

Create the middleware pipeline used to dispatch a gRPC route.

Return Value

Pipeline

at line 285
protected array middlewareFor(Route $route)

Resolve user middleware while retaining mandatory protocol handling.

Parameters

Route $route

Return Value

array

at line 293
protected bool ownsGlobalRouteState()

Determine whether this router owns the application's global route state.

Return Value

bool