Coder Social home page Coder Social logo

Properly publish response status about pushpin HOT 6 CLOSED

fastly avatar fastly commented on May 17, 2024
Properly publish response status

from pushpin.

Comments (6)

jkarneges avatar jkarneges commented on May 17, 2024

This is not yet implemented but the way it will work is you'll pass it as "code" within the "http-reponse". For the instruction response you'd provide "code" within "response". I should get to this in the next few days.

from pushpin.

 avatar commented on May 17, 2024

Thanks! :)

from pushpin.

jkarneges avatar jkarneges commented on May 17, 2024

Done.

from pushpin.

 avatar commented on May 17, 2024

Hey, thanks :) code works fine in hold response, but I still can't get publish to work.

This is my json:

    {
      "items" => [{
        "channel" => "503",
        "http-response" => {
          "headers" => {
            "Content-Type" => "application/json"
          },
          "body" => "{}\n",
          "code" => 204
        }
      }]
    }

Handler log:

IN publish: {'http-response': {'body': '{}\n', 'headers': {'Content-Type': 'application/json'}}, 'channel': '503'}
relaying to 1 subscribers
OUT publish: pushpin-m2-7999 1:1, HTTP/1.1 200 OK
Content-Length: 3
Content-Type: application/json

{}

Am I missing something?

from pushpin.

jkarneges avatar jkarneges commented on May 17, 2024

Ah, silly me testing only the zeromq input. Hopefully fixed now.

from pushpin.

 avatar commented on May 17, 2024

Yes it works, thank you very much :)

from pushpin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.