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

Handler to take single event param & ret w/ compojure dispatch #24

Merged

Commits on Aug 27, 2023

  1. 🐛 fix(faas_fn_build_invoke.yml): fix content-type header case in curl…

    … commands
    
    ✨ feat(faas_fn_build_invoke.yml): add support for process.env.PORT environment variable
    📝 docs(README.adoc): update third party code section with derived files from ring-clojure
    🐛 fix(handler.clj): update handler function to destructure body from request
    🐛 fix(Dockerfile): add bb print-deps command to Dockerfile
    🐛 fix(bb.edn): add "lib" directory to paths in bb.edn
    🐛 fix(index.clj): update ->app function to use wrap-friendly-headers middleware
    📝 docs(compojure/response.clj): add compojure.response namespace with Renderable and Sendable protocols
    📝 docs(ring/middleware/head.clj): add ring.middleware.head namespace with wrap-head middleware
    
    ✨ feat(headers.clj): add wrap-friendly-headers middleware
    
    ✨ feat(headers.clj): add wrap-lowercase-headers middleware
    
    ✨ feat(json.clj): add wrap-json-body-request middleware
    
    ✨ feat(json.clj): add wrap-json-params middleware
    
    ✨ feat(json.clj): add wrap-json-response middleware
    
    ✨ feat(io.clj): add piped-input-stream function
    
    ✨ feat(io.clj): add string-input-stream function
    
    ✨ feat(io.clj): add close! function
    
    ✨ feat(io.clj): add last-modified-date function
    
    📦 chore(mime_type.clj): add mime-type utility functions for determining file extensions and mime-types
    📦 chore(parsing.clj): add regular expressions for parsing HTTP headers and finding content-type charset
    
    ✨ feat(response.clj): add functions for generating and augmenting response maps
    🐛 fix(response.clj): fix typo in function name redirect-after-post
    ✨ feat(response.clj): add function for returning a 400 'bad request' response
    ✨ feat(response.clj): add function for returning a 404 'not found' response
    ✨ feat(response.clj): add function for returning a skeletal response with given body
    ✨ feat(response.clj): add function for updating status of a response
    ✨ feat(response.clj): add function for updating header of a response
    ✨ feat(response.clj): add function for setting charset of a response
    ✨ feat(response.clj): add function for getting charset of a response
    ✨ feat(response.clj): add function for setting a cookie on the response
    ✨ feat(response.clj): add function for finding a header in a response
    ✨ feat(response.clj
    
    📝 chore(ring.util.time.clj): add time utility functions for dealing with HTTP requests
    📝 chore(ring.util.walk.clj): add utility functions for manipulating maps and strings
    📝 chore(tests.clj): add tests for ring.util.walk and ring.util.string functions
    ccfontes committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    4cd0a19 View commit details
    Browse the repository at this point in the history
  2. 🔧 chore(index.clj): remove unnecessary metadata from ns declaration

    🔧 chore(response.clj): remove unnecessary metadata from ns declaration
    🔥 remove(head.clj): remove unused middleware
    🔧 chore(headers.clj): add author and license metadata to ns declaration
    🔧 chore(parsing.clj): remove unnecessary metadata from ns declaration
    🔧 chore(string.clj): add author and license metadata to ns declaration
    🔧 chore(walk.clj): add author and license metadata to ns declaration
    🔧 chore(tests.clj): remove unnecessary metadata from ns declaration
    🔧 chore(tests.clj): add author and license metadata to ns declaration
    🔧 chore(tests.clj): add tests for ring-string/read-string
    🔧 chore(tests.clj): add tests for ring-string/write-string
    🔧 chore(tests.clj): add tests for ring-walk/read-val-
    ccfontes committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    5461afd View commit details
    Browse the repository at this point in the history
  3. 🐛 fix(response.clj): change function signature of url-as-file to matc…

    …h conventional style
    
    🐛 fix(response.clj): add conditional check to canonical-path to handle directories correctly
    ccfontes committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    d5f1a21 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. 🐛 fix(handler.clj): print the body before processing in the handler f…

    …unction
    
    🐛 fix(handler.clj): destructure the body from the request map in the handler function
    🐛 fix(handler.clj): destructure the body from the request map in the handler function
    🐛 fix(Dockerfile): remove unnecessary directory in the COPY command
    🐛 fix(index.clj): add wrap-text-body middleware to handle text/plain requests
    ✨ feat(text.clj): add wrap-text-body middleware to handle text/plain requests
    ccfontes committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    6800c0a View commit details
    Browse the repository at this point in the history
  2. 🐛 fix(handler.clj): remove unnecessary println statement

    🐛 fix(handler.clj): update destructuring keys to match context variable names
    🐛 fix(mime_type.clj): change if-let to when-let for file extension check
    ccfontes committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    bf7670f View commit details
    Browse the repository at this point in the history
  3. 📝 docs(README.adoc): update documentation for supporting string keys …

    …in payload body
    
    🐛 fix(Dockerfile): update bb prepare command to include function/handler directory and print dependencies
    ccfontes committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    b460770 View commit details
    Browse the repository at this point in the history
  4. 🐛 fix(Dockerfile): change bb command to use --deps-root flag

    🐛 fix(ring.middleware.text): add missing metadata to namespace declaration
    ✅ test(middleware-text): add tests for text-request? function
    ccfontes committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    4a9a1ec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8c5ba4a View commit details
    Browse the repository at this point in the history
  6. 📝 docs(response.clj): update metadata formatting and add URL

    📝 docs(headers.clj): update metadata formatting and add URL
    📝 docs(json.clj): update metadata formatting and add URL
    📝 docs(text.clj): update metadata formatting and add URL
    📝 docs(io.clj): update metadata formatting and add URL
    📝 docs(mime_type.clj): update metadata formatting and add URL
    📝 docs(parsing.clj): update metadata formatting and add URL
    📝 docs(response.clj): update metadata formatting and add URL
    📝 docs(string.clj): update metadata formatting and add URL
    📝 docs(time.clj): update metadata formatting and add URL
    📝 docs(walk.clj): update metadata formatting and add URL
    📝 docs(tests.clj): update metadata formatting and add URL
    ccfontes committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    2ff16b8 View commit details
    Browse the repository at this point in the history