# 简单的 Stream 例子

作为一个简单处理步骤的示例，我们可以使用以下 Stream definition 将 `http` 中给到的数据通过 `transform` 转换为大写的形式正在传递给 `log`： `http | transform --expression=payload.toUpperCase() | log`

要创建发布此 Stream，请在shell中输入以下命令

```bash
dataflow:> stream create --definition "http --server.port=9000 | transform --expression=payload.toUpperCase() | log" --name mystream --deploy
```

以下示例使用shell命令发布了一些数据：

```bash
dataflow:> http post --target http://localhost:9000 --data "hello"
```

上面的例子的结果，在`log`中以返回大写“HELLO”，如下所示:

`2016-06-01 09:54:37.749 INFO 80083 --- [ kafka-binder-] log.sink : HELLO`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cxz.gitbook.io/spring-cloud-date-flow/streams/li-zi/untitled-3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
