---
url: >-
  https://lit-ui-router.dev/api/ui-router-server/fetch/type-aliases/ServeResponse.md
---
[ui-router-server](../../index.md) / [fetch](../index.md) / ServeResponse

# Type Alias: ServeResponse\<Args>

```ts
type ServeResponse<Args> = (verdict, request, ...args) => 
  | Response
| Promise<Response>;
```

Defined in: [fetch.ts:178](https://github.com/simshanith/lit-ui-router/blob/4f9e1ea23844bc57088f9af022eec027c059192b/packages/ui-router-server/src/fetch.ts#L178)

Answers a request whose pathname matched a response state, handed the
verdict, the original request and the arguments the adapter was called
with. Run the state's transition and its bound handler here (for example
through `lit-ui-router-ssr`); its Response goes out untouched.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
|  `Args` *extends* `unknown`\[] | \[] |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `verdict` | `Extract`<[`Verdict`](../../index/type-aliases/Verdict.md), { `kind`: `"response"`; }> |
| `request` | [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) |
| ...`args` | `Args` |

## Returns

| [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
| `Promise`<[`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)>
