The uppercase HTTP middleware converts the body of the request to uppercase letters and is used for testing that the pipeline is functioning. 它只应用于本地开发。
在下述定义中,将请求体的内容变成大写:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: uppercase
spec:
type: middleware.http.uppercase
version: v1
此组件没有要配置的 metadata
。
To be applied, the middleware must be referenced in configuration. See middleware pipelines.
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: appconfig
spec:
httpPipeline:
handlers:
- name: uppercase
type: middleware.http.uppercase