hi*      !"#$%&'()NoneB *+,-./01234 *,-./0123 *+,-./01234None2468M5Sequence of steps to get a StreamWorker. This class is independent of things like the finer details concerning the frames and the streams.]Todo: although this shows a common pattern, I'm not sure how having a class here helps....6iA StreamWorker: a conduit that takes input tokens and answers with output tokens. It can perform I/O.57896:;<=>?@ABCDEFGHIJKLM57896:;<=>?@ABCDEFGHIJKL 57896:@?>=<;ABCFEDGHIJKLM Safe-Inferred+:MOThrown when the HTTP/2 connection prefix doesn't match the expected prefix.BAbstract exception. Thrown when encoding/decoding of a frame fails;Abstract exception. All HTTP/2 exceptions derive from here NOPQRSTUV NOPQRSTUV NoneWXY%How to know if we can split somewhereInput left-oversGenerator action+Packet and leftovers, if we could get them %How to know if we can split somewhereInput left-oversGenerator actionPacket bytes and left-overs.Z[WXY[WXYZ[NoneActivates logging to terminal\]\]  Safe-Inferred+:MsA concrete case of the above exception. Throw one of this if you don't want to implement your own type. Use   in catch signatures. )Throw exceptions derived from this (e.g, ? below) to have the HTTP/2 session to terminate gracefully. A function which takes three arguments: the first one says how to send data (on a socket or similar transport), and the second one how to receive data on said socket. The third argument encapsulates the sequence of steps needed for a clean shutdown. You can implement one of these to let somebody else supply the push, pull and close callbacks. In this library we supply callbacks for TLS sockets, so that you don't need to go through the drudgery of managing those yourself.Attendants encapsulate all the session book-keeping functionality, which for HTTP/2 is quite complicated. You use the function http2Attendant" to create one of these from a CoherentWorker. Callback that the session calls to realease resources associated with the channels. Take into account that your callback should be able to deal with non-clean shutdowns also, for example, if the connection to the remote peer is severed suddenly. uCallback type to pull data from a channel. The same as to PushAction applies to exceptions thrown from there. mCallback type to push data to a channel. Part of this interface is the abstract exception type IOProblem. Throw an instance of it from here to notify the session that the connection has been broken. There is no way to signal "normal termination", since HTTP/2's normal termination can be observed at a higher level when a GO_AWAY frame is seen. ^ _ `ab^ _  ^ _ `ab None+,Singleton type. Used in conjunction with an c'. If the MVar is full, the fuction I knows that it should finish at its earliest convenience and call the   for any open sessions.Exception inheriting from  . This is thrown by the OpenSSL subsystem to signal that the connection was broken or that otherwise there was a problem at the SSL layer. Simple function to open Interruptible version of . Use the extra argument to ask the server to finish: you pass an empty MVar and when you want to finish you just populate it. defghijklmnopqrstuvwxPath to a certificate the server is going to use to identify itself. Bear in mind that multiple domains can be served from the same HTTP/2 TLS socket, so please create the HTTP/2 certificate accordingly.%Path to the key of your certificate. AName of the network interface where you want to start your server-List of protocol names and the corresponding   to use for each. This way you can serve both HTTP/1.1 over TLS and HTTP/2 in the same socket. When no ALPN negotiation is present during the negotiation, the first protocol in this list is used.(Port to open to listen for connections.  Same as for   Same as for  Same as for  Same as for 4Finish request, write a value here to finish servingyz{defghilkjmnopqrstuvwxyz{ None+2468M A pushed stream, represented by a list of request headers, a list of response headers, and the usual response body (which may include final footers (not implemented yet)).A list of pushed streams |'This exception will be raised inside a  when the underlying stream is cancelled (STREAM_RESET in HTTP/2). Do any necessary cleanup in a handler, or simply use the fact that the exception is asynchronously delivered to your CoherentWorker Haskell thread, giving you an opportunity to interrupt any blocked operations.HMain type of this library. You implement one of these for your server. Basically this is a callback that the library calls as soon as it has all the headers of a request. For GET requests that's the entire request basically, but for POST and PUT requests this is just before the data starts arriving to the server. A source-like conduit with the data returned in the response. The return value of the conduit is a list of footers. For now that list can be anything (even bottom), I'm not handling it just yet. +You use this type to answer a request. The V are thus response headers and they should contain the :status pseudo-header. The N is a list of pushed streams...(I don't thaink that I'm handling those yet)Finalization headers Finalization headers. If you don't know what they are, chances are that you don't need to worry about them for now. The support in this library for those are at best sketchy. A request is a set of headers and a request body.... which will normally be empty, except for POST and PUT requests. But this library enforces none of that. This is a Source conduit (see Haskell Data.Conduit library from Michael Snoyman) that you can use to retrieve the data sent by the client piece-wise. tList of headers. The first part of each tuple is the header name (be sure to conform to the HTTP/2 convention of using lowercase) and the second part is the headers contents. This list needs to include the special :method, :scheme, :authority and :path pseudo-headers for requests; and :status (with a plain numeric value represented in ascii digits) for responses.}"Gets a single header from the list|~} |~} |~} None3HM nCallbacks that you can provide your sessions to notify you of interesting things happening in the server. !^Used by this session engine to report an error at some component, in a particular session. Components at an individual session. Used to report where in the session an error was produced. This interface is likely to change in the future, as we add more metadata to exceptions3Information used to identify a particular session. Get/set a numeric Id from a [. For example, to get the session id with this, import `Control.Lens.(^.)` and then do 3 session_id = session_coordinates ^. sessionId "Contains information that applies to all sessions created in the program. Use the lenses interface to access members of this struct. #?Configuration information you can provide to the session maker.%(Lens to access sessionsCallbacks in the # object.&TCreates a default sessions context. Modify as needed using the lenses interfacesl !"#$%&'% !"#$%&'H !"#$% &'None*+242(     (# (     None)+The type of this function is equivalent to: [ http2Attendant :: CoherentWorker -> PushAction -> PullAction -> CloseAction -> IO () Given a w, this function wraps it with flow control, multiplexing, and state maintenance needed to run an HTTP/2 session. )))None !"#$%&') )'&#" !%$None((None   VA library for implementing HTTP/2 servers supporting streaming requests and responses.$(c) Alcides Viamontes Esquivel, 2015BSDalcidesv@zunzun.se experimentalPOSIXNone ) )                 ! " # $ % & ' ( ) * + , - . / 0 1 234556789:;<=>?@ABCDEFGHIJKLMNOPQQRSTUVWXYZ[\]^_ ` a b c def   g h ijkl m n o p q r s t u v w x y z { | } ~           +                  - .       Ksecond-transfer-0.3.0.4SecondTransfer.Exception SecondTransfer.MainLoop.InternalSecondTransfer.MainLoop.LoggingSecondTransfer.MainLoopSecondTransferSecondTransfer.Http2SecondTransfer.UtilsSecondTransfer.MainLoop.TokensSecondTransfer.MainLoop.Framer$SecondTransfer.MainLoop.PushPullType#SecondTransfer.MainLoop.OpenSSL_TLS&SecondTransfer.MainLoop.CoherentWorkerSecondTransfer.Http2.SessionSecondTransfer.Http2.Framer"SecondTransfer.Http2.MakeAttendantBadPrefaceExceptionFramerExceptionHTTP2SessionExceptionreadNextChunkAndContinueenableConsoleLoggingGenericIOProblem IOProblem Attendant CloseAction PullAction PushAction FinishRequestTLSLayerGenericProblemtlsServeWithALPN"tlsServeWithALPNAndFinishOnRequest PushedStream PushedStreamsCoherentWorkerDataAndConclusionPrincipalStreamFootersFinalizationHeadersRequestInputDataStreamHeaders InputFrame OutputFrameSessionsCallbacks ErrorCallbackSessionsContextSessionsConfigreportErrorCallbacksessionsCallbacksdefaultSessionsConfigmakeSessionsContexthttp2FrameLengthhttp2AttendantWord24strToInt word24ToInt getWord24be putWord24be lowercaseTextunfoldChannelAndSource stripString domainFromUrl$fBinaryWord24StreamWorkerClass StreamWorker initService initSession initStreamStreamOutputAction Finish_SOASendAssociatedFinish_SOASendAssociatedData_SOA SendData_SOASendAssociatedHeaders_SOASendHeaders_SOAGlobalStreamId LocalStreamIdStreamInputToken Finish_StkData_Stk Headers_STkUnpackedNameValueListactionIsForAssociatedStreampackHeaderTuplesunpackHeaderTuples getHeader$fBinaryUnpackedNameValueList'convertHTTP2SessionExceptionToException%getHTTP2SessionExceptionFromException!convertFramerExceptionToExceptiongetFramerExceptionFromException$fExceptionBadPrefaceException$fExceptionFramerException$fShowFramerException $fExceptionHTTP2SessionException$fShowHTTP2SessionExceptionLengthCallbackFramer readNextChunkreadUpTo readLengthconfigureLoggingToConsolesetLoggerLevels$fExceptionGenericIOProblem$fExceptionIOProblem$fShowIOProblembaseGHC.MVarMVar Protocols Wired_PtrConnection_PtrWired_t Connection_tInterruptibleEither InterruptedRight_ILeft_IcloseConnectiondisposeWiredSessiongetSelectedProtocolrecvDatasendDatawaitForConnectionmakeConnectionallOk badHappenedtimeoutReached useBufferSizeprotocolsToWiredefaultWaitTime smallWaitTime!$fExceptionTLSLayerGenericProblemStreamCancelledExceptiongetHeaderFromFlatList#$fExceptionStreamCancelledExceptionSessionComponentSessionCoordinates sessionIdWorkerThreadEnvironment _streamId_headersOutput _dataOutput_streamsCancelled_WTEDataOutputToConveyor HeadersSentuseChunkLength_reportErrorCallbackFramer_SessionComponent(SessionDataOutputThread_SessionComponent+SessionHeadersOutputThread_SessionComponent#SessionInputThread_SessionComponentSessionOutputCommandCancelSession_SOCSessionInputCommandCancelSession_SIC WorkerMonadStream2HeaderBlockFragment HashTable SessionOutput SessionInputSession dataOutput headersOutputstreamIdstreamsCancelled_WTEsendFrameToSessionsendCommandToSessiongetFrameFromSession$fEqSessionCoordinates_sessionsConfig_nextSessionId_sessionsCallbacks SessionData_sessionsContext _sessionInput_sessionOutput_toEncodeHeaders_toDecodeHeaders_stream2HeaderBlockFragment_forWorkerThread_coherentWorker_streamsCancelled_stream2PostInputMechanism_stream2WorkerThread_sessionIdAtSessionPostInputMechanismCoherentSession SessionMaker nextSessionIdsessionsConfigcoherentWorkerforWorkerThreadsessionIdAtSession sessionInput sessionOutputsessionsContextstream2HeaderBlockFragmentstream2PostInputMechanismstream2WorkerThreadstreamsCancelledtoDecodeHeaderstoEncodeHeaders http2SessionsessionInputThreadframeEndsStreamcreateMechanismForStreamclosePostDataSourcestreamWorkerSendDatasendBytesToPimpostDataSourceFromMechanism isSettingsAckisStreamCancelled workerThreadsendDataOfStreamappendHeaderFragmentBlockgetHeaderBytesframeIsHeaderOfStreamframeEndsHeadersstreamIdFromFrameheadersOutputThreadbytestringChunkdataOutputThreadsessionExceptionHandlerFramerSessionData _stream2flow_stream2outputBytes_defaultStreamWindow _canOutput_outputIsForbidden_noHeadersInChannel _pushAction _closeAction _sessionId _lastStreamNoHeadersInChannel CanOutputStream2AvailSpaceFlowControlCommand AddBytes_FCMhttp2PrefixLength FramerSession canOutput closeActiondefaultStreamWindow lastStreamnoHeadersInChanneloutputIsForbidden pushAction stream2flowstream2outputBytes wrapSession addCapacity inputGathereroutputGathererupdateLastStreamstartStreamOutputQueuehandleHeadersOfStream pushFramesendGoAwayFrame sendBytesflowControlOutput releaseFramer