---
jsApi: true
title: "[F] getHttpService"

---
```ts
getHttpService(
  program,
  serviceNamespace,
  options?): [HttpService, readonly Diagnostic[]]
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `serviceNamespace` | `Namespace` |
| `options`? | [`RouteResolutionOptions`](Interface.RouteResolutionOptions.md) |

## Returns

[[`HttpService`](Interface.HttpService.md), *readonly* `Diagnostic`[]]
