@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
163 lines (76 loc) • 2.27 kB
Markdown
---
lang: en
title: 'API docs: http-caching-proxy.httpcachingproxy'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/http-caching-proxy
permalink: /doc/en/lb4/apidocs.http-caching-proxy.httpcachingproxy.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/http-caching-proxy](./http-caching-proxy.md) > [HttpCachingProxy](./http-caching-proxy.httpcachingproxy.md)
## HttpCachingProxy class
The HTTP proxy implementation.
**Signature:**
```typescript
export declare class HttpCachingProxy
```
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(options)](./http-caching-proxy.httpcachingproxy._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `HttpCachingProxy` class
</td></tr>
</tbody></table>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[url](./http-caching-proxy.httpcachingproxy.url.md)
</td><td markdown="1">
</td><td markdown="1">
string
</td><td markdown="1">
URL where the proxy is listening on. Provide this value to your HTTP client as the proxy configuration.
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[logError(request, error)](./http-caching-proxy.httpcachingproxy.logerror.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[start()](./http-caching-proxy.httpcachingproxy.start.md)
</td><td markdown="1">
</td><td markdown="1">
Start listening.
</td></tr>
<tr><td markdown="1">
[stop()](./http-caching-proxy.httpcachingproxy.stop.md)
</td><td markdown="1">
</td><td markdown="1">
Stop listening.
</td></tr>
</tbody></table>