gi-soup-0.2.52.12: 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.MessageBody

Contents

Description

A #SoupMessage request or response body.

Note that while length always reflects the full length of the message body, data is normally %NULL, and will only be filled in after soup_message_body_flatten() is called. For client-side messages, this automatically happens for the response body after it has been fully read, unless you set the %SOUP_MESSAGE_OVERWRITE_CHUNKS flags. Likewise, for server-side messages, the request body is automatically filled in after being read.

As an added bonus, when data is filled in, it is always terminated with a '\0' byte (which is not reflected in length).

Synopsis

Exported types

Methods

messageBodyAppend

messageBodyAppendBuffer

messageBodyComplete

messageBodyFlatten

messageBodyFree

messageBodyGetAccumulate

messageBodyGetChunk

messageBodyGotChunk

messageBodyNew

messageBodySetAccumulate

messageBodyTruncate

messageBodyWroteChunk

Properties

Data

Length