Associating HTTP headers and bodies

  Hi,

  In p:http-request, a multipart request or response content is
represented as:

    <c:multipart
      content-type? = string
      boundary = string>
        c:header*,
        c:body+
    </c:multipart>

  While this maps directly the HTTP entity content structure,
this fails to express the semantics: a multipart is a set of
parts, each of them having a set of headers and a content:

    <c:multipart
      content-type? = string
      boundary = string>
        c:part+
    </c:multipart>

    <c:part>
        c:header*,
        c:body+
    </c:part>

  This is of course equivalent, but in the later case the
physical structure matches the logical structure.  Furthermore
(and I would say more importantly), the former case requires
grouping to get the headers corresponding to one part, and I am
afraid that will be blocking for same applications.

  I think the current design introduces unneeded and avaidable
complexity.

  Regards, and Merry Christams!

-- 
Florent Georges
http://www.fgeorges.org/

Received on Thursday, 24 December 2009 16:55:36 UTC