---
lang: en
title: 'API docs: http-server.basehttpoptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/http-server
permalink: /doc/en/lb4/apidocs.http-server.basehttpoptions.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/http-server](./http-server.md) &gt; [BaseHttpOptions](./http-server.basehttpoptions.md)

## BaseHttpOptions interface

Base options that are common to http and https servers

<b>Signature:</b>

```typescript
export interface BaseHttpOptions extends ListenOptions, Partial<HttpServerProperties> 
```
<b>Extends:</b> ListenOptions, Partial&lt;[HttpServerProperties](./http-server.httpserverproperties.md)<!-- -->&gt;

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [gracePeriodForClose?](./http-server.basehttpoptions.graceperiodforclose.md) | number | <i>(Optional)</i> The <code>gracePeriodForClose</code> property controls how to stop the server gracefully. Its value is the number of milliseconds to wait before in-flight requests finish when the server is being stopped. With this setting, we also reject new requests from existing keep-alive connections in addition to stopping accepting new connections.<!-- -->Defaults to Infinity (don't force-close). If you want to immediately destroy all sockets set its value to <code>0</code>.<!-- -->See [stoppable](https://www.npmjs.com/package/stoppable) |


