1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

examples: writing an API for the Apache Kafka: add a root handler for routes documentation to make navigation easier and add some other methods that may find them useful for request state and routes description

Former-commit-id: 3775aab2386051b23e127ccc9e3a6accdfdee6d0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-08-05 13:51:05 +03:00
parent 2b2492abfa
commit e5f6bce86f
8 changed files with 97 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ func (b *Broker) ServeHTTP(ctx context.Context) {
ctx.Writef("data: %s\n\n", <-messageChan)
// or json: data:{obj}.
// Flush the data immediatly instead of buffering it for later.
// Flush the data immediately instead of buffering it for later.
flusher.Flush()
}
}