| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Handlers.Budget
Description
Native requests pass the edge check and admission, run under the serve-path cap, and bound actual upstream chunks and examined source documents independently.
Synopsis
- withNativeRequest :: (ServeRuntime -> (ResponseHeaders -> Handler ResponseReceived) -> (MemoryTicket -> Handler a) -> (a -> Handler ResponseReceived) -> Handler ResponseReceived) -> Request -> (RubyResponse -> Handler ResponseReceived) -> (PackumentDeps -> a) -> (MemoryTicket -> PackumentDeps -> Handler a) -> (a -> Handler ResponseReceived) -> Handler ResponseReceived
- newNativeReadBudget :: Int -> IO (Int -> IO ())
- newNativeDocumentBudget :: Int -> response -> IO (Int -> IO (Either response ()))
Documentation
withNativeRequest :: (ServeRuntime -> (ResponseHeaders -> Handler ResponseReceived) -> (MemoryTicket -> Handler a) -> (a -> Handler ResponseReceived) -> Handler ResponseReceived) -> Request -> (RubyResponse -> Handler ResponseReceived) -> (PackumentDeps -> a) -> (MemoryTicket -> PackumentDeps -> Handler a) -> (a -> Handler ResponseReceived) -> Handler ResponseReceived Source #
Refuse a caller the edge does not authorise, then run action under admit and the serve-path
cap, answering expired once the cap passes and handing the result to continue.