Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 See also  





2 References  





3 External links  














HTTP handler







Add links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


An ASP.NET HTTP handler is a process that runs in response to a request made to an ASP.NET Web application.[1] The most common handler is the ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler.[2]

HTTP handlers were not present in the "Classic" ASP. They implement the System.Web.IHttpHandler interface. Unlike ASP.NET Web Forms, they have no HTML-markup file, no events and other supporting. All they have is a code-file (written in any .NET-compatible language) that writes some data to the server HTTP response. HTTP handlers are similar to ISAPI extensions.[3]

An HTTP module is an assembly that is called on every request that is made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life-cycle events throughout the request. HTTP modules let you examine incoming and outgoing requests and take action based on the request.[4]

Unlike ASP.NET Web Forms, that have ".aspx" file extension, ASP.NET handlers by default have ".ashx" file extension.[5]

Handlers are considered to be more lightweight object than ASP.NET Web Forms. That is why they are used to serve dynamically-generated images, on-the-fly generated PDF-files and similar content to the web browser.[6]

With ASP.NET Core, this HTTP handlers have been replaced with "middleware" ApplicationBuilders (IApplicationBuilder) which allow routing requests based on request headers instead of just the URL path.[7]

See also[edit]

References[edit]

  1. ^ "HTTP Handlers and HTTP Modules Overview". msdn.microsoft.com. Retrieved 15 March 2017.
  • ^ Archiveddocs. "HTTP Handlers and HTTP Modules Overview". learn.microsoft.com. Retrieved 2023-02-06.
  • ^ "Handlers in ASP.NET". Home. 2010-05-14. Retrieved 2023-02-06.
  • ^ Archiveddocs. "HTTP Handlers and HTTP Modules Overview". learn.microsoft.com. Retrieved 2023-02-06.
  • ^ Tripathi, Mayank. "HTTP Handlers And HTTP Modules In ASP.NET". www.c-sharpcorner.com. Retrieved 2023-02-06.
  • ^ "Handlers in ASP.NET". Home. 2010-05-14. Retrieved 2023-02-06.
  • ^ "Migrate HTTP handlers and modules to ASP.NET Core middleware". ASP.NET Core. Microsoft Docs. Retrieved 2019-10-17.
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=HTTP_handler&oldid=1137776466"

    Category: 
    ASP.NET
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
     



    This page was last edited on 6 February 2023, at 10:52 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki