# createHttpDataProvider Function

> createHttpDataProvider function in the TX Sheet Control JavaScript API for the browser, with the return type DataProvider and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > createHttpDataProvider Function
- **349 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/createhttpdataprovider-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/createhttpdataprovider-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/createhttpdataprovider-function/llms-full.txt

---

Public function for createHttpDataProvider.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

ES module import: `import { createHttpDataProvider } from '@txtextcontrol/tx-sheet-control';`.

### Syntax

```javascript
createHttpDataProvider(url, fetcher)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `url` | `string` | No | Value matching url's declared type and the owning object's validation rules. |
| `fetcher` | `((input: RequestInfo \| URL, init?: RequestInit) => Promise<Response>) \| undefined` | Yes | Value matching fetcher's declared type and the owning object's validation rules. |

### Return Value

`DataProvider`.

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```javascript
import { createHttpDataProvider } from '@txtextcontrol/tx-sheet-control';

const result = createHttpDataProvider('/assets/sheet/fonts/LiberationSans-Regular.ttf');
console.log(result);
```

### See Also

- [JavaScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [createDocumentLayout Function](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/createdocumentlayout-function/llms-full.txt)
- **Next:** [createPrintLayout Function](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/createprintlayout-function/llms-full.txt)
