Documentation
¶
Overview ¶
Package http implements an HTTP CloudEvents binding.
Index ¶
Constants ¶
View Source
const ContentType = "Content-Type"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryEncoder ¶
type BinaryEncoder struct{}
type Message ¶
Message holds the Header and Body of a HTTP Request or Response.
func NewMessage ¶
NewMessage returns a Message with header and data from body. Reads and closes body.
func (*Message) Structured ¶
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver for CloudEvents as HTTP requests. Implements http.Handler, To receive messages, associate it with a http.Server.
Click to show internal directories.
Click to hide internal directories.