HTTP-4000.3.14: A library for client-side HTTP

CopyrightSee LICENSE file
LicenseBSD
MaintainerGanesh Sittampalam <ganesh@earth.li>
Stabilityexperimental
Portabilitynon-portable (not tested)
Safe HaskellNone
LanguageHaskell98

Network.StreamDebugger

Description

Implements debugging of Streams. Originally part of Gray's\/Bringert's HTTP module.

Synopsis

Documentation

data StreamDebugger x Source #

Allows stream logging. Refer to debugStream below.

Instances
Stream x => Stream (StreamDebugger x) Source # 
Instance details

Defined in Network.StreamDebugger

Methods

readLine :: StreamDebugger x -> IO (Result String) Source #

readBlock :: StreamDebugger x -> Int -> IO (Result String) Source #

writeBlock :: StreamDebugger x -> String -> IO (Result ()) Source #

close :: StreamDebugger x -> IO () Source #

closeOnEnd :: StreamDebugger x -> Bool -> IO () Source #

debugStream :: Stream a => FilePath -> a -> IO (StreamDebugger a) Source #

Wraps a stream with logging I/O. The first argument is a filename which is opened in AppendMode.

debugByteStream :: HStream ty => FilePath -> HandleStream ty -> IO (HandleStream ty) Source #