Skip to content

Commit

Permalink
add status code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jan 11, 2024
1 parent 306f1fc commit fb934d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This document defines how to describe HTTP-specific information on AsyncAPI.

## Version

Current version is `0.2.0`.
Current version is `0.3.0`.


<a name="server"></a>
Expand Down Expand Up @@ -73,6 +73,7 @@ This object contains information about the message representation in HTTP.
Field Name | Type | Description
---|:---:|---
<a name="messageBindingObjectHeaders"></a>`headers` | [Schema Object][schemaObject] \| [Reference Object](referenceObject) | A Schema object containing the definitions for HTTP-specific headers. This schema MUST be of type `object` and have a `properties` key.
<a name="messageBindingObjectStatusCode"></a>`status-code` | number | The HTTP response status code according to [RFC 9110](https://httpwg.org/specs/rfc9110.html#overview.of.status.codes).
<a name="messageBindingObjectBindingVersion"></a>`bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed.

This object MUST contain only the properties defined above.
Expand All @@ -86,6 +87,7 @@ channels:
testMessage:
bindings:
http:
status-code: 200
headers:
type: object
properties:
Expand Down

0 comments on commit fb934d2

Please sign in to comment.