# IResourceWithEndpoints.withExternalHttpEndpoints

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [IResourceWithEndpoints](/reference/api/typescript/aspire.hosting/iresourcewithendpoints.md)
- Version: `13.4.0`
- Kind: `method`

Marks existing http or https endpoints on a resource as external.

## Definition

```typescript
interface IResourceWithEndpoints {
  // ... omitted for brevity
  withExternalHttpEndpoints(): IResourceWithEndpoints;
}
```

## Signature

```typescript
withExternalHttpEndpoints(): IResourceWithEndpoints
```

## Returns

[IResourceWithEndpoints](/reference/api/typescript/aspire.hosting/iresourcewithendpoints.md) `builder`

## Defined on

- [IResourceWithEndpoints](/reference/api/typescript/aspire.hosting/iresourcewithendpoints.md) -- `interface`
