mime.multipart vocabulary
Factor handbook > Vocabulary index


Summary
MIME multipart parser

Meta-data
Authors:Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
mime-file tupleheaders filename temporary-path
mime-variable tupleheaders key value
multipart tupleend-of-stream? current-separator mime-separator header content-disposition bytes filename temp-file name name-content mime-parts
no-content-disposition tuplemultipart
unknown-content-disposition tuplemultipart


Ordinary words
WordStack effect
<mime-file>( headers filename temporary-path -- mime-file )
<mime-variable>( headers key value -- mime-variable )
<multipart>( mime-separator -- multipart )
buffer-size( -- value )
dump-file( multipart -- multipart )
dump-mime-file( multipart filename -- multipart )
dump-string( multipart separator -- multipart string )
dump-until-separator( multipart -- multipart )
empty-name?( string -- ? )
fill-bytes( multipart -- multipart )
lookup-disposition( multipart string -- multipart value/f )
mime-write( sequence -- )
no-content-disposition( multipart -- * )
parse-beginning( multipart -- multipart )
parse-content-disposition-form-data( string -- hashtable )
parse-form-data( multipart -- multipart )
parse-headers( string -- hashtable )
parse-multipart( separator -- mime-parts )
parse-multipart-loop( multipart -- multipart )
process-header( multipart -- multipart )
read-assert-sequence=( sequence -- )
read-header( multipart -- multipart )
save-mime-part( multipart -- )
save-uploaded-file( multipart -- )
separator-prefix( -- value )
split-bytes( bytes separator -- leftover-bytes safe-to-dump )
unknown-content-disposition( multipart -- * )


Class predicate words
WordStack effect
mime-file?( object -- ? )
mime-variable?( object -- ? )
multipart?( object -- ? )
no-content-disposition?( object -- ? )
unknown-content-disposition?( object -- ? )


Files