"LBS" 在 WAI 的上下文中意味着什么?
What does "LBS" mean in the context of WAI?
WAI中有几个标识符包含"LBS":
Network.Wai.responseLBS
:: Status -> ResponseHeaders -> ByteString -> Response
-- | Store uploaded files in memory
lbsBackEnd
:: Monad m => ignored1 -> ignored2 -> m S.ByteString -> m L.ByteString
我在 WAI 文档中找不到任何提及 "LBS" 的内容。这是什么意思?
The overriding design principles here are performance and generality.
To address performance, this library is built on top of the conduit
and blaze-builder
packages. The advantages of conduits over lazy IO
have been debated elsewhere and so will not be addressed here.
However, helper functions like responseLBS
allow you to continue using
lazy IO if you so desire.
所以,是的,LBS 确实代表 Lazy ByteString。
WAI中有几个标识符包含"LBS":
Network.Wai.responseLBS
:: Status -> ResponseHeaders -> ByteString -> Response
-- | Store uploaded files in memory
lbsBackEnd
:: Monad m => ignored1 -> ignored2 -> m S.ByteString -> m L.ByteString
我在 WAI 文档中找不到任何提及 "LBS" 的内容。这是什么意思?
The overriding design principles here are performance and generality. To address performance, this library is built on top of the
conduit
andblaze-builder
packages. The advantages of conduits over lazy IO have been debated elsewhere and so will not be addressed here. However, helper functions likeresponseLBS
allow you to continue using lazy IO if you so desire.
所以,是的,LBS 确实代表 Lazy ByteString。