Commit 420134ae authored by petre's avatar petre
Browse files

new type definition for mime headers

parent 4d827443
Loading
Loading
Loading
Loading
+30 −20
Original line number Diff line number Diff line
@@ -40,6 +40,11 @@ module LibMsrp_TypesAndValues {
            FAILURE_REPORT_E, //"Failure-Report"
            BYTE_RANGE_E, // "Byte-Range"
            STATUS_E, // "Status"
            //MIME headers
            CONTENT_ID_E,	// "Content-ID"
            CONTENT_DESCRIPTION_E, // "Content-Description"
            CONTENT_DISPOSITION_E, // "Content-Disposition"
            MIME_EXT_FIELD_E, // RFC2045 Section 9. "Content-*"
            CONTENT_TYPE_E, // "Content-Type"
            //RFC 4976
            EXPIRES_E, //"Expires"
@@ -369,45 +374,50 @@ module LibMsrp_TypesAndValues {
            /**
             * @see RFC 2045 
             */
            type charstring ContentID;
            type record ContentID {
                HeaderName headerName (CONTENT_ID_E)
                //TODO: add value
            }
            
            /**
             * @see RFC 2045 
             */
            type charstring ContentDescription;
            type record ContentDescription {
                HeaderName headerName (CONTENT_DESCRIPTION_E)
                //TODO: add value
            }
            
            /**
             * @see RFC 2183 
             */
            type charstring MsrpContentDisposition;
            type record MsrpContentDisposition {
                HeaderName headerName (CONTENT_DISPOSITION_E)
                //TODO: add value
            }
            
            /**
             * @see RFC 2045 
             */
            type charstring MimeExtensionField;
            type record MimeExtensionField {
                HeaderName headerName (MIME_EXT_FIELD_E),
                charstring hname,
                charstring hval
            }
            
        } // End of group msrpMimeTypes
            type set of MimeExtensionField MimeExtensionFieldList;
            
        /**
         * @desc TODO
         * @member id TODO
         * @member description TODO
         * @member disposition TODO
         * @member extensionField TODO
         * @see RFC 4975 - Clause 9. Formal Syntax
         */
        type union OtherMimeHeader {
            ContentID id,
            ContentDescription description,
            MsrpContentDisposition disposition,
            MimeExtensionField extensionField
        } // End of type OtherMimeHeader
        } // End of group msrpMimeTypes
        
        /**
         * @desc TODO
         * @see RFC 4975 - Clause 9. Formal Syntax
         */
        type set of OtherMimeHeader MimeHeaders;
        type record MimeHeaders {
            ContentID contentID optional,
            ContentDescription contentDescription optional,
            MsrpContentDisposition contentDisposition optional,
            MimeExtensionFieldList mimeExtensionFields optional
        }
        
        /**
         * @desc TODO