简体   繁体   English

“LBS”在WAI背景下意味着什么?

[英]What does “LBS” mean in the context of WAI?

There are several identifiers in WAI containing "LBS": WAI中有几个包含“LBS”的标识符:

  • Network.Wai.responseLBS :: Status -> ResponseHeaders -> ByteString -> Response Network.Wai.responseLBS :: Status -> ResponseHeaders -> ByteString -> Response

  • -- | Store uploaded files in memory
    lbsBackEnd :: Monad m => ignored1 -> ignored2 -> m S.ByteString -> m L.ByteString lbsBackEnd :: Monad m => ignored1 -> ignored2 -> m S.ByteString -> m L.ByteString

I can't find anything in the WAI documentation that mentions "LBS". 我在WAI文档中找不到任何提及“LBS”的内容。 What does it mean? 这是什么意思?

From the Hackage documentation : 来自Hackage文档

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. 为了解决性能问题,该库建立在conduitblaze-builder软件包之上。 The advantages of conduits over lazy IO have been debated elsewhere and so will not be addressed here. 管道优于懒惰IO的优点已经在其他地方进行了争论,因此这里不予讨论。 However, helper functions like responseLBS allow you to continue using lazy IO if you so desire. 但是,如果您愿意,可以使用responseLBS等辅助函数继续使用惰性IO。

so, yes, LBS does stand for Lazy ByteString . 所以,是的,LBS确实代表Lazy ByteString

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM