(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{174:function(t,e,n){"use strict";n.r(e),n.d(e,"frontMatter",(function(){returnc})),n.d(e,"metadata",(function(){returnp})),n.d(e,"rightToc",(function(){returnu})),n.d(e,"default",(function(){returnl}));varr=n(2),o=n(9),i=(n(0),n(186)),a=n(188),c={id:"proxy",title:"Proxy"},p={id:"proxy",title:"Proxy",description:"The included HTTPClient has full proxy configuration support:",source:"@site/docs/proxy.md",permalink:"/SpotifyAPI-NET/docs/next/proxy",editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/proxy.md",version:"next",lastUpdatedBy:"dependabot-preview[bot]",lastUpdatedAt:1594839976,sidebar:"docs",previous:{title:"Logging",permalink:"/SpotifyAPI-NET/docs/next/logging"},next:{title:"Pagination",permalink:"/SpotifyAPI-NET/docs/next/pagination"}},u=[],s={rightToc:u};functionl(t){vare=t.components,n=Object(o.a)(t,["components"]);returnObject(i.b)("wrapper",Object(r.a)({},s,n,{components:e,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",Object(r.a)({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",Object(r.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")}))}l.isMDXComponent=!0},186:function(t,e,n){"use strict";n.d(e,"a",(function(){returnl})),n.d(e,"b",(function(){returnd}));varr=n(0),o=n.n(r);functioni(t,e,n){returneint?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}functiona(t,e){varn=Object.keys(t);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}returnn}functionc(t){for(vare=1;e<arguments.length;e++){varn=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}returnt}functionp(t,e){if(null==t)return{};varn,r,o=function(t,e){if(null==t)return{};varn,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);returno}(t,e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}returno}varu=o.a.createContext({}),s=function(t){vare=o.a.useContext(u),n=e;returnt&&(n="function"==typeoft?t(e):c({},e,{},t)),n},l=function(t){vare=s(t.components);returno.a.createElement(u.Provider,{value:e},t.children)},f={inlineCode:"code",wrapper:function(t){vare=t.children;returno.a.createElement(o.a.Fragment,{},e)}},y=Object(r.forwardRef)((function(t,e){varn=t.components,r=t.mdxType,i=t.originalType,a=t.parentName,u=p(t,["components","mdxType","originalType","parentName"]),l=s(n),y=r,d=l["".concat(a,".").concat(y)]||l[y]||f[y]||i;returnn?o.a.createElement(d,c({ref:e},u,{components:n})):o.a.createElement(d,c({ref:e},u))}));functiond(t,e){varn=arguments,r=e&&e.mdxType;if("string"==typeoft||r){vari=n.length,a=newArray(i);a[0]=y;varc={};for(varpine)hasOwnProperty.call(e,p)&&(c[p]=e[p]);c.originalType=t,c.mdxType="string"==typeoft?t: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)}y.displayName="MDXCreateElement"},187:function(t,e,n){"use strict";varr=n(0),o=n(49);e.a=function(){returnObject(r