mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 07:56:26 +00:00
27 lines
582 B
Markdown
27 lines
582 B
Markdown
---
|
|
id: proxy
|
|
title: Proxy
|
|
---
|
|
|
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
|
|
The included `HTTPClient` has full proxy configuration support:
|
|
|
|
```csharp
|
|
var httpClient = new NetHttpClient(new ProxyConfig("localhost", 8080)
|
|
{
|
|
User = "",
|
|
Password = "",
|
|
SkipSSLCheck = false,
|
|
});
|
|
var config = SpotifyClientConfig
|
|
.CreateDefault()
|
|
.WithHTTPClient(httpClient);
|
|
|
|
var spotify = new SpotifyClient(config);
|
|
```
|
|
|
|
As an example, [mitmproxy](https://mitmproxy.org/) can be used to inspect the requests and responses:
|
|
|
|
<img alt="mitmproxy" src={useBaseUrl('img/mitmproxy.png')} />
|