Commit Graph

2 Commits

Author SHA1 Message Date
Curtis Mason ca5c702ffc
Top level http (#83)
* Modularized http and made http a top level module

Modularized the http directory by separating related functions into
different scripts. Also removed EventClass and kept a singular
CloudEvent. Finally, CloudEvent.__repr__ was refactored such that it
doesn't depend on external methods.

Signed-off-by: Curtis Mason <cumason@google.com>

* renamed requests.py to http_methods

Signed-off-by: Curtis Mason <cumason@google.com>

* lint fixes

Signed-off-by: Curtis Mason <cumason@google.com>
2020-07-30 15:21:59 -07:00
Curtis Mason b2a87a8af6
Image sample code (#65)
* added image example

Signed-off-by: Curtis Mason <cumason@google.com>

* moved size into headers

Signed-off-by: Curtis Mason <cumason@google.com>

* lint fix

Signed-off-by: Curtis Mason <cumason@google.com>

* renamed sample code

Signed-off-by: Curtis Mason <cumason@google.com>

* added test to http-image-cloudevents sample

Signed-off-by: Curtis Mason <cumason@google.com>

* removed unnecessary function

Signed-off-by: Curtis Mason <cumason@google.com>

* Added testing for http-image-cloudevents

Signed-off-by: Curtis Mason <cumason@google.com>

* Data marshall arg fix and better image in sample

Fixed bug where data_marshaller and data_unmarshaller wasn't being
passed into positional arguments. Also used cloudevents logo for the
image in http-image-cloudevents

Signed-off-by: Curtis Mason <cumason@google.com>

* adjusted http-image-cloudevents samples

Signed-off-by: Curtis Mason <cumason@google.com>

* reformat and README changes

Signed-off-by: Curtis Mason <cumason@google.com>

* io bytes casting in data_unmarshaller

Signed-off-by: Curtis Mason <cumason@google.com>

* lint fix

Signed-off-by: Curtis Mason <cumason@google.com>

* removed unusued imports in http-image samples

Signed-off-by: Curtis Mason <cumason@google.com>

* removed samples/http-cloudevents/tmp.png

Signed-off-by: Curtis Mason <cumason@google.com>

* Nits

Signed-off-by: Curtis Mason <cumason@google.com>
2020-07-21 23:53:35 -07:00