gi-soup-0.2.52.15: Soup bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Structs.Multipart

Contents

Description

Represents a multipart HTTP message body, parsed according to the syntax of RFC 2046. Of particular interest to HTTP are literalmultipartbyte-ranges<literal> and literalmultipartform-data<literal>.

Although the headers of a #SoupMultipart body part will contain the full headers from that body part, libsoup does not interpret them according to MIME rules. For example, each body part is assumed to have "binary" Content-Transfer-Encoding, even if its headers explicitly state otherwise. In other words, don't try to use #SoupMultipart for handling real MIME multiparts.

Synopsis

Exported types

newtype Multipart Source

Instances

BoxedObject Multipart 
((~) * signature (MessageHeaders -> MessageBody -> m ()), MonadIO m) => MethodInfo * MultipartToMessageMethodInfo Multipart signature 
((~) * signature (Int32 -> m (Bool, MessageHeaders, Buffer)), MonadIO m) => MethodInfo * MultipartGetPartMethodInfo Multipart signature 
((~) * signature (m Int32), MonadIO m) => MethodInfo * MultipartGetLengthMethodInfo Multipart signature 
((~) * signature (m ()), MonadIO m) => MethodInfo * MultipartFreeMethodInfo Multipart signature 
((~) * signature (MessageHeaders -> Buffer -> m ()), MonadIO m) => MethodInfo * MultipartAppendPartMethodInfo Multipart signature 
((~) * signature (Text -> Text -> m ()), MonadIO m) => MethodInfo * MultipartAppendFormStringMethodInfo Multipart signature 
((~) * signature (Text -> Text -> Text -> Buffer -> m ()), MonadIO m) => MethodInfo * MultipartAppendFormFileMethodInfo Multipart signature 
((~) * info (ResolveMultipartMethod t Multipart), MethodInfo * info Multipart p) => IsLabelProxy t (Multipart -> p) 
type AttributeList Multipart 

Methods

multipartAppendFormFile

data MultipartAppendFormFileMethodInfo Source

Instances

((~) * signature (Text -> Text -> Text -> Buffer -> m ()), MonadIO m) => MethodInfo * MultipartAppendFormFileMethodInfo Multipart signature 

multipartAppendFormString

multipartAppendPart

multipartFree

data MultipartFreeMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * MultipartFreeMethodInfo Multipart signature 

multipartGetLength

multipartGetPart

multipartNew

multipartNewFromMessage

multipartToMessage