Although I have never seen a definition, the term handler is usually applied to something which is not of itself an autonomous function, but which fits into a function to provide a service.

As an example, look at the Apache Web Server. The server software provides hooks where you can interpose code for things such as authentication, authorization, request handling and others. Each of these is known as a phase becuase one pphase starts and completes before another phase can commence. Within the phase there is a provision ofr external code to be used to perform a function in a different way to that which Apache provides itself. The handler code will receive a set of data or structures, process them, and returns a response. For example you might use several types of authorization methods on your web site. Some areas might be protected by Basic .htaccess controls, others might require validation against a database. So you have two handlers. One for the .htaccess method, if it fails Apache will keep checking with any handlers it has been told about until it finds on e that fits, say the database handler, when it returns a success the process is completed and the server moves on to the next phase.

The Apache handler based system is well documented on the Apache web site and in the various books on the server.

Hope that helps
jdtoronto


In reply to Re: Handlers by jdtoronto
in thread What is a handler? by McDuff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.