Resolve CS0121 in System.Web.HttpExtension methods conflictHow to resolve error with equally named types in method parameters?HttpResponseMessage not working in Web Api (.NET 4.5)Assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Net.Http.Formatting, Version=5.2.3.0Several system libraries missing in a VS Express installFileLoadException Occured for System.Web.HttpAdjusting ambiguous type references on xmlns: xmlns:x and xmlns:cal attributes for precedenceMVC 5 Helper errorHow To Ensure Correct Extension Method ResolutionAmbiguity in parameter type inference for C# lambda expressionsSystem.Net.Http Unavailable for .Net 4.5 Application. Reference Has Been Added

Flow chart document symbol

Arithmetic mean geometric mean inequality unclear

How to pronounce the slash sign

Is `x >> pure y` equivalent to `liftM (const y) x`

How do I extract a value from a time formatted value in excel?

Integer addition + constant, is it a group?

Do sorcerers' Subtle Spells require a skill check to be unseen?

Is the destination of a commercial flight important for the pilot?

Method to test if a number is a perfect power?

Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?

Replace character with another only if repeated and not part of a word

Why, precisely, is argon used in neutrino experiments?

Lay out the Carpet

How do we know the LHC results are robust?

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

How can I kill an app using Terminal?

How do I go from 300 unfinished/half written blog posts, to published posts?

Different result between scanning in Epson's "color negative film" mode and scanning in positive -> invert curve in post?

Term for the "extreme-extension" version of a straw man fallacy?

Why are there no referendums in the US?

How do scammers retract money, while you can’t?

Class Action - which options I have?

Shortcut for value of this indefinite integral?

Sequence of Tenses: Translating the subjunctive



Resolve CS0121 in System.Web.Http


Extension methods conflictHow to resolve error with equally named types in method parameters?HttpResponseMessage not working in Web Api (.NET 4.5)Assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Net.Http.Formatting, Version=5.2.3.0Several system libraries missing in a VS Express installFileLoadException Occured for System.Web.HttpAdjusting ambiguous type references on xmlns: xmlns:x and xmlns:cal attributes for precedenceMVC 5 Helper errorHow To Ensure Correct Extension Method ResolutionAmbiguity in parameter type inference for C# lambda expressionsSystem.Net.Http Unavailable for .Net 4.5 Application. Reference Has Been Added













3















This code:



Request.CreateResponse(HttpStatusCode.PartialContent);


Yields following compilation error:




Error CS0121 The call is ambiguous between the following methods or
properties:
'System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)' and
'System.Web.Http.HttpRequestMessageCommonExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)'




Both are in System.Net.Http namespace, one in System.Web.Http assembly the other in System.Net.Http.Formatting but I need them both as a reference. Even worse System.Net.Http.HttpRequestMessageExtensions class is present in both assemblies.



As a workaround, I could use this overload, which seems to be in only one of them:



Request.CreateResponse<object>(HttpStatusCode.PartialContent, null);


But is there any other way to resolve the conflict?



[Steps to reproduce]



  1. Create a console app

  2. Add the reference to System.Net.Http

  3. Add the reference to System.Net.Http.Formatting from NuGet

  4. Add using System.Net.Http

  5. Add var req = new HttpRequestMessage();

  6. Try adding req.CreateResponse(HttpStatusCode.OK);

  7. You should see 12 extension method overloads. Some are duplicated, those are the problem.









share|improve this question
























  • VS easily handle this, as I know

    – demo
    Mar 21 at 15:57











  • @demo well, it looks not to be able. Anyway, the solution should not be IDE dependant, but rather pure code or config. You can fully qualify a class to resolve conflict, but what can you do with extension methods that are imported from any used namespace unattended?

    – ZorgoZ
    Mar 22 at 9:24






  • 1





    If it's saying its ambiguous then you just have to make it clear. Use the full namespace of the one that you do want to use.

    – Archer
    Mar 22 at 11:01











  • @Archer please give an example of how to do that in case of an extension method.

    – ZorgoZ
    Mar 22 at 11:05











  • Can you give a Minimal, Complete, and Verifiable example so we can copy/paste & reproduce the issue?

    – Archer
    Mar 22 at 11:09















3















This code:



Request.CreateResponse(HttpStatusCode.PartialContent);


Yields following compilation error:




Error CS0121 The call is ambiguous between the following methods or
properties:
'System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)' and
'System.Web.Http.HttpRequestMessageCommonExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)'




Both are in System.Net.Http namespace, one in System.Web.Http assembly the other in System.Net.Http.Formatting but I need them both as a reference. Even worse System.Net.Http.HttpRequestMessageExtensions class is present in both assemblies.



As a workaround, I could use this overload, which seems to be in only one of them:



Request.CreateResponse<object>(HttpStatusCode.PartialContent, null);


But is there any other way to resolve the conflict?



[Steps to reproduce]



  1. Create a console app

  2. Add the reference to System.Net.Http

  3. Add the reference to System.Net.Http.Formatting from NuGet

  4. Add using System.Net.Http

  5. Add var req = new HttpRequestMessage();

  6. Try adding req.CreateResponse(HttpStatusCode.OK);

  7. You should see 12 extension method overloads. Some are duplicated, those are the problem.









share|improve this question
























  • VS easily handle this, as I know

    – demo
    Mar 21 at 15:57











  • @demo well, it looks not to be able. Anyway, the solution should not be IDE dependant, but rather pure code or config. You can fully qualify a class to resolve conflict, but what can you do with extension methods that are imported from any used namespace unattended?

    – ZorgoZ
    Mar 22 at 9:24






  • 1





    If it's saying its ambiguous then you just have to make it clear. Use the full namespace of the one that you do want to use.

    – Archer
    Mar 22 at 11:01











  • @Archer please give an example of how to do that in case of an extension method.

    – ZorgoZ
    Mar 22 at 11:05











  • Can you give a Minimal, Complete, and Verifiable example so we can copy/paste & reproduce the issue?

    – Archer
    Mar 22 at 11:09













3












3








3








This code:



Request.CreateResponse(HttpStatusCode.PartialContent);


Yields following compilation error:




Error CS0121 The call is ambiguous between the following methods or
properties:
'System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)' and
'System.Web.Http.HttpRequestMessageCommonExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)'




Both are in System.Net.Http namespace, one in System.Web.Http assembly the other in System.Net.Http.Formatting but I need them both as a reference. Even worse System.Net.Http.HttpRequestMessageExtensions class is present in both assemblies.



As a workaround, I could use this overload, which seems to be in only one of them:



Request.CreateResponse<object>(HttpStatusCode.PartialContent, null);


But is there any other way to resolve the conflict?



[Steps to reproduce]



  1. Create a console app

  2. Add the reference to System.Net.Http

  3. Add the reference to System.Net.Http.Formatting from NuGet

  4. Add using System.Net.Http

  5. Add var req = new HttpRequestMessage();

  6. Try adding req.CreateResponse(HttpStatusCode.OK);

  7. You should see 12 extension method overloads. Some are duplicated, those are the problem.









share|improve this question
















This code:



Request.CreateResponse(HttpStatusCode.PartialContent);


Yields following compilation error:




Error CS0121 The call is ambiguous between the following methods or
properties:
'System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)' and
'System.Web.Http.HttpRequestMessageCommonExtensions.CreateResponse(System.Net.Http.HttpRequestMessage,
System.Net.HttpStatusCode)'




Both are in System.Net.Http namespace, one in System.Web.Http assembly the other in System.Net.Http.Formatting but I need them both as a reference. Even worse System.Net.Http.HttpRequestMessageExtensions class is present in both assemblies.



As a workaround, I could use this overload, which seems to be in only one of them:



Request.CreateResponse<object>(HttpStatusCode.PartialContent, null);


But is there any other way to resolve the conflict?



[Steps to reproduce]



  1. Create a console app

  2. Add the reference to System.Net.Http

  3. Add the reference to System.Net.Http.Formatting from NuGet

  4. Add using System.Net.Http

  5. Add var req = new HttpRequestMessage();

  6. Try adding req.CreateResponse(HttpStatusCode.OK);

  7. You should see 12 extension method overloads. Some are duplicated, those are the problem.






c# asp.net-web-api2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 11:27







ZorgoZ

















asked Mar 21 at 15:55









ZorgoZZorgoZ

1,3111517




1,3111517












  • VS easily handle this, as I know

    – demo
    Mar 21 at 15:57











  • @demo well, it looks not to be able. Anyway, the solution should not be IDE dependant, but rather pure code or config. You can fully qualify a class to resolve conflict, but what can you do with extension methods that are imported from any used namespace unattended?

    – ZorgoZ
    Mar 22 at 9:24






  • 1





    If it's saying its ambiguous then you just have to make it clear. Use the full namespace of the one that you do want to use.

    – Archer
    Mar 22 at 11:01











  • @Archer please give an example of how to do that in case of an extension method.

    – ZorgoZ
    Mar 22 at 11:05











  • Can you give a Minimal, Complete, and Verifiable example so we can copy/paste & reproduce the issue?

    – Archer
    Mar 22 at 11:09

















  • VS easily handle this, as I know

    – demo
    Mar 21 at 15:57











  • @demo well, it looks not to be able. Anyway, the solution should not be IDE dependant, but rather pure code or config. You can fully qualify a class to resolve conflict, but what can you do with extension methods that are imported from any used namespace unattended?

    – ZorgoZ
    Mar 22 at 9:24






  • 1





    If it's saying its ambiguous then you just have to make it clear. Use the full namespace of the one that you do want to use.

    – Archer
    Mar 22 at 11:01











  • @Archer please give an example of how to do that in case of an extension method.

    – ZorgoZ
    Mar 22 at 11:05











  • Can you give a Minimal, Complete, and Verifiable example so we can copy/paste & reproduce the issue?

    – Archer
    Mar 22 at 11:09
















VS easily handle this, as I know

– demo
Mar 21 at 15:57





VS easily handle this, as I know

– demo
Mar 21 at 15:57













@demo well, it looks not to be able. Anyway, the solution should not be IDE dependant, but rather pure code or config. You can fully qualify a class to resolve conflict, but what can you do with extension methods that are imported from any used namespace unattended?

– ZorgoZ
Mar 22 at 9:24





@demo well, it looks not to be able. Anyway, the solution should not be IDE dependant, but rather pure code or config. You can fully qualify a class to resolve conflict, but what can you do with extension methods that are imported from any used namespace unattended?

– ZorgoZ
Mar 22 at 9:24




1




1





If it's saying its ambiguous then you just have to make it clear. Use the full namespace of the one that you do want to use.

– Archer
Mar 22 at 11:01





If it's saying its ambiguous then you just have to make it clear. Use the full namespace of the one that you do want to use.

– Archer
Mar 22 at 11:01













@Archer please give an example of how to do that in case of an extension method.

– ZorgoZ
Mar 22 at 11:05





@Archer please give an example of how to do that in case of an extension method.

– ZorgoZ
Mar 22 at 11:05













Can you give a Minimal, Complete, and Verifiable example so we can copy/paste & reproduce the issue?

– Archer
Mar 22 at 11:09





Can you give a Minimal, Complete, and Verifiable example so we can copy/paste & reproduce the issue?

– Archer
Mar 22 at 11:09












1 Answer
1






active

oldest

votes


















3














In general, you can use extension methods directly to resolve such ambiguities:



Instead of



myRequest.CreateResponse(HttpStatusCode.PartialContent);


use



HttpRequestMessageExtensions.CreateResponse(myRequest, HttpStatusCode.PartialContent);



In this specific case, I could not reproduce the issue following your instructions. However, I have downloaded the Microsoft.AspNet.WebApi.Client Nuget instead of the System.Net.Http.Formatting Nuget since the later one is marked as deprecated. Maybe try to update to the newer Nuget?



Update: I can reproduce the issue when also installing the System.Web.Http.Common Nuget and adding using System.Web.Http; to the file. Using the explicit call to the method as shown above resolves the issue.






share|improve this answer

























  • Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

    – ZorgoZ
    Mar 22 at 13:03












  • But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

    – ZorgoZ
    Mar 22 at 13:16










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55284458%2fresolve-cs0121-in-system-web-http%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














In general, you can use extension methods directly to resolve such ambiguities:



Instead of



myRequest.CreateResponse(HttpStatusCode.PartialContent);


use



HttpRequestMessageExtensions.CreateResponse(myRequest, HttpStatusCode.PartialContent);



In this specific case, I could not reproduce the issue following your instructions. However, I have downloaded the Microsoft.AspNet.WebApi.Client Nuget instead of the System.Net.Http.Formatting Nuget since the later one is marked as deprecated. Maybe try to update to the newer Nuget?



Update: I can reproduce the issue when also installing the System.Web.Http.Common Nuget and adding using System.Web.Http; to the file. Using the explicit call to the method as shown above resolves the issue.






share|improve this answer

























  • Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

    – ZorgoZ
    Mar 22 at 13:03












  • But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

    – ZorgoZ
    Mar 22 at 13:16















3














In general, you can use extension methods directly to resolve such ambiguities:



Instead of



myRequest.CreateResponse(HttpStatusCode.PartialContent);


use



HttpRequestMessageExtensions.CreateResponse(myRequest, HttpStatusCode.PartialContent);



In this specific case, I could not reproduce the issue following your instructions. However, I have downloaded the Microsoft.AspNet.WebApi.Client Nuget instead of the System.Net.Http.Formatting Nuget since the later one is marked as deprecated. Maybe try to update to the newer Nuget?



Update: I can reproduce the issue when also installing the System.Web.Http.Common Nuget and adding using System.Web.Http; to the file. Using the explicit call to the method as shown above resolves the issue.






share|improve this answer

























  • Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

    – ZorgoZ
    Mar 22 at 13:03












  • But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

    – ZorgoZ
    Mar 22 at 13:16













3












3








3







In general, you can use extension methods directly to resolve such ambiguities:



Instead of



myRequest.CreateResponse(HttpStatusCode.PartialContent);


use



HttpRequestMessageExtensions.CreateResponse(myRequest, HttpStatusCode.PartialContent);



In this specific case, I could not reproduce the issue following your instructions. However, I have downloaded the Microsoft.AspNet.WebApi.Client Nuget instead of the System.Net.Http.Formatting Nuget since the later one is marked as deprecated. Maybe try to update to the newer Nuget?



Update: I can reproduce the issue when also installing the System.Web.Http.Common Nuget and adding using System.Web.Http; to the file. Using the explicit call to the method as shown above resolves the issue.






share|improve this answer















In general, you can use extension methods directly to resolve such ambiguities:



Instead of



myRequest.CreateResponse(HttpStatusCode.PartialContent);


use



HttpRequestMessageExtensions.CreateResponse(myRequest, HttpStatusCode.PartialContent);



In this specific case, I could not reproduce the issue following your instructions. However, I have downloaded the Microsoft.AspNet.WebApi.Client Nuget instead of the System.Net.Http.Formatting Nuget since the later one is marked as deprecated. Maybe try to update to the newer Nuget?



Update: I can reproduce the issue when also installing the System.Web.Http.Common Nuget and adding using System.Web.Http; to the file. Using the explicit call to the method as shown above resolves the issue.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 22 at 11:55

























answered Mar 22 at 11:34









NineBerryNineBerry

14.6k23363




14.6k23363












  • Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

    – ZorgoZ
    Mar 22 at 13:03












  • But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

    – ZorgoZ
    Mar 22 at 13:16

















  • Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

    – ZorgoZ
    Mar 22 at 13:03












  • But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

    – ZorgoZ
    Mar 22 at 13:16
















Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

– ZorgoZ
Mar 22 at 13:03






Just to make it more challenging, explicit call gives: CS0433 The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Unfortunatelly, I can't get rid of System.Net.Http.Formatting as it comes with a dependency too. But still looks promising.

– ZorgoZ
Mar 22 at 13:03














But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

– ZorgoZ
Mar 22 at 13:16





But it works in the other way around: HttpRequestMessageCommonExtensions.CreateResponse is unambiguous. I have come to this approach before, but I thought that there is something better. Well, thank you for confirming that there isn't.

– ZorgoZ
Mar 22 at 13:16



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55284458%2fresolve-cs0121-in-system-web-http%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript