simple-sendfile-0.2.14: Cross platform library for the sendfile system call

Safe HaskellNone

Network.Sendfile

Description

Cross platform library for the sendfile system call. This library tries to call minimum system calls which are the bottleneck of web servers.

Synopsis

Documentation

sendfile :: Socket -> FilePath -> FileRange -> IO () -> IO ()Source

Sendfile emulation using conduit. Used system calls:

  • Used system calls: open(), stat(), read(), send() and close().

sendfileWithHeader :: Socket -> FilePath -> FileRange -> IO () -> [ByteString] -> IO ()Source

Sendfile emulation using conduit. Used system calls:

  • Used system calls: open(), stat(), read(), writev(), send() and close().

data FileRange Source

File range for sendfile.