log.debug( Don )

  1. Search
  2. About
  3. Subscribe
  4. Archive
  5. Random

log.debug( Don )

Don Abrams is a web programmer currently living in Newark, Delaware USA.

Newer
Older
  • How HTTP servers/libs could work

    This is more a brainstorming session than anything else. J2EE has been killing me of late and I’ve been trying to explain to coworkers how Node.js/Connect and Ruby/Rails work differently

    HTTP Server

    1. You should always be able to access the response and request.
    2. You should always have access to a session identifier if it exists and be able to remove it.
    3. Resource Mapping should consist of mapping urls to resources. A resource should be a static file or a controller. In order to support generic controllers, variables may be extractable from a URL. Static resources should be cached and listened to for changes!
    4. There should be an easy way to listen and post to a web socket in addition to subscribing to open/close events
    5. There should be a way to intercept a static file or controller request

    The above rules should be the sole extent of an Http Server.

    HTTP Utilities:

    1. There should be an easy way to extract HTML Form data from a request.
    2. There should be an easy way to extract POST data from a request.
    3. There should be an easy way to add cookies to a response and retrieve cookies from a request.
    4. There should be an easy way to urlize and de-urlize a string

    Container Utilities:

    1. There should be an easy way to extract JSON and XML from a String
    2. There should be an easy way to stream bits in from a request and out to a response
    3. There should be an easy way to Map a Dictionary of List of String to and from HTML form data
    4. There should be an easy way to associate data with a session, and delete a session

    Posted on May 3, 2012 ()

  • blackartdirector
  • roninwood
  • gethighlight
  • thankstextbooks
  • dcenterbaltimore
  • krtconf
  • dorkitudinal
  • smallgalaxies
  • theblankcanvasde

Field Notes Theme. Designed by Manasto Jones. Powered by Tumblr.