# Functions
No description provided by the author
IsHTTPBatch returns if the current http.Request or http.Response is a batch event operation, by checking the header `Content-Type` value.
No description provided by the author
NewEventFromHTTPRequest returns an Event.
NewEventFromHTTPResponse returns an Event.
NewEventsFromHTTPRequest returns a batched set of Events from a HTTP Request.
NewEventsFromHTTPResponse returns a batched set of Events from a HTTP Response.
NewHTTPRequestFromEvent creates a http.Request object that can be used with any http.Client for a singular event.
NewHTTPRequestFromEvents creates a http.Request object that can be used with any http.Client for sending a batched set of events.
NewMessage returns a binding.Message with header and data.
NewMessageFromHttpRequest returns a binding.Message with header and data.
NewMessageFromHttpResponse returns a binding.Message with header and data.
NewResult returns a fully populated http Result that should be used as a transport.Result.
NewRetriesResult returns a http RetriesResult that should be used as a transport.Result without retries.
RequestDataFromContext retrieves RequestData from the Context.
WithClient sets the protocol client.
No description provided by the author
WithDefaultOptionsHandlerFunc sets the options handler to be the built in handler and configures the options.
WithGetHandlerFunc sets the http GET handler func.
WithHeader sets an additional default outbound header for all cloudevents when using an HTTP request.
WithIsRetriableFunc sets the function that gets called to determine if an error should be retried.
WithListener sets the listener for StartReceiver.
WithMethod sets the HTTP verb (GET, POST, PUT, etc.) to use when using an HTTP request.
WithMiddleware adds an HTTP middleware to the transport.
WithOptionsHandlerFunc sets the http OPTIONS handler func.
WithPath sets the path to receive cloudevents on for HTTP transports.
WithPort sets the listening port for StartReceiver.
No description provided by the author
WithRequestDataAtContext uses the http.Request to add RequestData information to the Context.
WithRequestDataAtContextMiddleware adds to the Context RequestData.
WithRoundTripper sets the HTTP RoundTripper.
WithRoundTripperDecorator decorates the default HTTP RoundTripper chosen.
WithShutdownTimeout sets the shutdown timeout when the http server is being shutdown.
WithTarget sets the outbound recipient of cloudevents when using an HTTP request.
WriteRequest fills the provided httpRequest with the message m.
WriteResponseWriter writes out to the the provided httpResponseWriter with the message m.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
DefaultShutdownTimeout defines the default timeout given to the http.Server when calling Shutdown.
No description provided by the author
# Variables
NewObserved creates an HTTP protocol with trace propagating middleware.
# Structs
Message holds the Header and Body of a HTTP Request or Response.
Protocol acts as both a http client and a http handler.
RequestData holds the http.Request information subset that can be used to retrieve HTTP information for an incoming CloudEvent.
Result wraps the fields required to make adjustments for http Responses.
RetriesResult wraps the fields required to make adjustments for http Responses.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
IsRetriable is a custom function that can be used to override the default retriable status codes.
Middleware is a function that takes an existing http.Handler and wraps it in middleware, returning the wrapped http.Handler.
Option is the function signature required to be considered an http.Option.