Commit Graph

5 Commits

Author SHA1 Message Date
Jon Skeet 92dd95a1b2 docs: Fix spec references in docs
Signed-off-by: Jon Skeet <jonskeet@google.com>
2022-05-31 18:25:41 +01:00
Jon Skeet b1f29cf25b Support data content type inference
- New methods in CloudEventFormatter to support inference
- JsonEventFormatter infers a content type of application/json for non-binary data
- All transports use the inferred content type when formatting in binary mode
- Documentation for both formatters and bindings has been updated

Signed-off-by: Jon Skeet <jonskeet@google.com>
2022-02-25 07:11:13 +00:00
Jon Skeet 603317eceb Implement HTTP batch mode for HttpClient/HttpContent
If this pattern looks okay, the next steps are:

- Implement for all other HTTP bindings
- Adjust the IsCloudEvent for all bindings (to ignore batch)
- Implement for any other bindings that support batch

Signed-off-by: Jon Skeet <jonskeet@google.com>
2021-04-15 06:59:43 +01:00
Jon Skeet 41f639d44b Move implementation utility methods into their own namespace
- Preconditions is renamed to Validation
- Validation is public, allowing simplified validation in
  implementation classes
- CloudEvent.ValidateForConversion is now Validation.CheckCloudEventArgument
- All the MimeUtilities methods are non-extension methods (to avoid
  Intellisense suggesting them)
- BinaryDataUtilities is now public (it's much less of an issue once
  it's in a namespace that other users are somewhat discouraged from
  using)
- Documentation explains the purpose of the namespace, albeit briefly

Signed-off-by: Jon Skeet <jonskeet@google.com>
2021-03-29 09:35:17 +01:00
Jon Skeet 83cdc5a1b4 docs: Document expectations for protocol bindings
Signed-off-by: Jon Skeet <jonskeet@google.com>
2021-03-16 11:23:34 +00:00