public final class HTTPStreamCodec extends Object implements EventCodec, Closeable
This creates a new unix socket on the address specified by env["FN_LISTENER"] - and accepts requests.
This currently only handles exactly one concurrent connection
Created on 24/08/2018.
(c) 2018 Oracle Corporation
EventCodec.Handler| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_STREAM_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
runCodec(EventCodec.Handler h)
Run Codec should continuously run the function event loop until either the FDK should exit normally (returning normally) or an error occurred.
|
public static final String HTTP_STREAM_FORMAT
public void runCodec(EventCodec.Handler h)
EventCodecCodec should invoke the handler for each received event
runCodec in interface EventCodech - the handler to runpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023. All rights reserved.