Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content-negotiation using muuntaja #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chrisbetz
Copy link

@chrisbetz chrisbetz commented Mar 24, 2020

Hi,

I wanted to reuse code (here: muuntaja for content negotation), also I wanted to be able to rely on the content-type header for coercion.

Thus I changed things a bit (ok, more than a bit). Maybe you want to check it out.

If it's more than you're willing to accept: I forked the project to gorillalabs/hato, as I need it for production and must move forward quickly). So, take your time.

Happy hacking

Chris


This change is Reviewable

@@ -6,6 +6,17 @@
GZIPOutputStream)
(java.io ByteArrayOutputStream ByteArrayInputStream InputStream)))

(defmulti as-string type)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@chrisbetz chrisbetz Mar 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

way more (transitive) dependencies, including manifold. That's a lot for just some conversions.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. :)

.travis.yml Outdated

notifications:
slack:
secure: avvMZRXVsixGTaSDXYOO06Q4K4e/u0/XQBY7QoRLUtDjesCT9iG9WPqOkEGUAgQ4G/+hNFdIVh4POuL/gVVW/cJ2Nmvmne2kywXck+DJawVlJfIF6Wh+0y961XmlDAOZomN0n8o5MN+2WJvXlfPgcDTcdCeZrtTOTAzdwQd7wDqPV4Vh0GyQYXe2pSVkhahwkVqpQ2pjcMhG5u4r2flW7XzZAr6pQeDJx033tIntUzrwsUOY3gaor8RwMxWzlrQjATPqhuvIHmKMtbi5ByPXfqfXGqR862qhabpiDy6qquZYSckFkeshF2Ht/cS9cwJ2yzu2aKe+s6G1QfFe8rtMjem3YYuIytrwDNDTV6iafvqJhYBcCCitjcfyBy5ZX8cRHhXD5xhZGk4Ex3dZsd7otTaTRET1mdLJ9FFd+OJu5FLcge0kSQlh8tcmLts1kECMIVUL+hojXZRsxQQ0tCsQOaX8lETd0M5TuTg7S3J17u3R8dTwSfNZDoDI7IhRo50OEHlsvB71LjPQFz5vZtEGeD6LuG80MRC3iVRZTqrdlnB1as9WLPVikN2nwEV/8aLHI0ByBgzOUIJ0YXTetdZJbomvr8Jrgl24G4fgBREw/pN0SJ6ddhWouXdSpERA2Wob+4c0Qqqz32gjxQRhkg8OH9x8uCpUyvNgAOA4tJFgTb0=
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this token supposed to be here? I'ts seems to be something sensitive.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how to setup slack notifications, and the token is encrypted: https://docs.travis-ci.com/user/notifications/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you might not want to use this because it's not your slack channel :)

CHANGELOG.md Outdated
@@ -1,40 +0,0 @@
# Change Log
Copy link

@yuhrao yuhrao Mar 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this changelog meant to be removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as it was of no value (as it's empty). Might be a bit drastical for a PR.

However, you can decide otherwise and keep the changelog.

Dr. Christian Betz added 2 commits September 12, 2022 10:24
Use muuntaja to encode request data / decode response data based upon content-type header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants