(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{111:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){returnc})),n.d(t,"metadata",(function(){returnp})),n.d(t,"toc",(function(){returnu})),n.d(t,"default",(function(){returns}));varr=n(3),o=n(7),i=(n(0),n(124)),a=n(126),c={id:"proxy",title:"Proxy"},p={unversionedId:"proxy",id:"proxy",isDocsHomePage:!1,title:"Proxy",description:"The included HTTPClient has full proxy configuration support:",source:"@site/docs/proxy.md",slug:"/proxy",permalink:"/SpotifyAPI-NET/docs/proxy",editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/proxy.md",version:"current",lastUpdatedBy:"Daniele Maltese",lastUpdatedAt:1620233498,formattedLastUpdatedAt:"5/5/2021",sidebar:"docs",previous:{title:"Logging",permalink:"/SpotifyAPI-NET/docs/logging"},next:{title:"Pagination",permalink:"/SpotifyAPI-NET/docs/pagination"}},u=[],l={toc:u};functions(e){vart=e.components,n=Object(o.a)(e,["components"]);returnObject(i.b)("wrapper",Object(r.a)({},l,n,{components:t,mdxType:"MDXLayout"}),Object(i.b)("p",null,"The included ",Object(i.b)("inlineCode",{parentName:"p"},"HTTPClient")," has full proxy configuration support:"),Object(i.b)("pre",null,Object(i.b)("code",{parentName:"pre",className:"language-csharp"},'var httpClient = new NetHttpClient(new ProxyConfig("localhost", 8080)\n{\n User = "",\n Password = "",\n SkipSSLCheck = false,\n});\nvar config = SpotifyClientConfig\n .CreateDefault()\n .WithHTTPClient(httpClient);\n\nvar spotify = new SpotifyClient(config);\n')),Object(i.b)("p",null,"As an example, ",Object(i.b)("a",{parentName:"p",href:"https://mitmproxy.org/"},"mitmproxy")," can be used to inspect the requests and responses:"),Object(i.b)("img",{alt:"mitmproxy",src:Object(a.a)("img/mitmproxy.png")}))}s.isMDXComponent=!0},124:function(e,t,n){"use strict";n.d(t,"a",(function(){returns})),n.d(t,"b",(function(){returny}));varr=n(0),o=n.n(r);functioni(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionc(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionp(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}varu=o.a.createContext({}),l=function(e){vart=o.a.useContext(u),n=t;returne&&(n="function"==typeofe?e(t):c(c({},t),e)),n},s=function(e){vart=l(e.components);returno.a.createElement(u.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){vart=e.children;returno.a.createElement(o.a.Fragment,{},t)}},d=o.a.forwardRef((function(e,t){varn=e.components,r=e.mdxType,i=e.originalType,a=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=l(n),d=r,y=s["".concat(a,".").concat(d)]||s[d]||f[d]||i;returnn?o.a.createElement(y,c(c({ref:t},u),{},{components:n})):o.a.createElement(y,c({ref:t},u))}));functiony(e,t){varn=arguments,r=t&&t.mdxType;if("string"==typeofe||r){vari=n.length,a=newArray(i);a[0]=d;varc={};for(varpint)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c.mdxType="string"==typeofe?e:r,a[1]=c;for(varu=2;u<i;u++)a[u]=n[u];returno.a.createElement.apply(null,a)}returno.a.createElement.apply(null,n)}d.displayName="MDXCreateElement"},126:function(e,t,n){"use strict";n.d(t,"b",(function()