question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HttpModule async registration

See original GitHub issue

I’m submitting a…


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

HttpModule dont have async registration because of this, it is not possible to set config variables.

Expected behavior

Async module registation with the possibility of inject dependencies through inject

Minimal reproduction of the problem with instructions

imports: [
  HttpModule.register({
    baseURL: 'http://example.com',
    headers: {
      authorization: `Bearer ${configService.get('AUTH_TOKEN')}`,
    }
  })
]

What is the motivation / use case for changing the behavior?

More convenient use of the module

Environment


Nest version: 5.1.0

 
For Tooling issues:
- Node version: 10.11.0  
- Platform: Windows 

Others:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilmysliwieccommented, Dec 9, 2018

Added in 5.5.0.

0reactions
lock[bot]commented, Sep 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing asynchronous HTTP Module in ASP.NET 4.5
Today again, I am going to discuss , one of the new features that got enhanced in ASP.NET 4.5. And It is Asynchronous...
Read more >
How to import a registerAsync in a dynamic Nestjs module?
But my question is, that if I use the registerAsync method, and my dynamic module needs to import HttpModule, and HttpModule's register-options ...
Read more >
Learn About Asynchronous HTTP Modules and ... - CodeGuru
In this article I will explain about the advantages of introducing asynchrony on the HTTP Pipeline and creating them in Asp.Net 4.5. A ......
Read more >
Implementing async HTTP modules in ASP.NET using TPL's ...
NET's HTTP modules are used to implementing the synchronous pipeline APIs (events such as BeginRequest, AuthenticateRequest, EndRequest, etc.).
Read more >
HTTP module | NestJS - A progressive Node.js framework
Nest wraps Axios and exposes it via the built-in HttpModule . ... most dynamic modules, Nest provides several techniques to deal with async...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found