Git Product home page Git Product logo

byzal's Introduction

Byzal

Byzal is named after the Byzal Canyon in the Star Wars universe. It's a simple Echo service (I assume canyons have a lot of echo).

Every request you make will answer with all the details about this request in JSON.

Examples:

GET /
{
  "scheme": "http",
  "query_params": {},
  "path": "/",
  "method": "GET",
  "host": "localhost",
  "headers": {
    "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36",
    "upgrade-insecure-requests": "1",
    "host": "localhost:4000",
    "connection": "keep-alive",
    "accept-language": "en-US,en;q=0.8,de;q=0.6",
    "accept-encoding": "gzip, deflate, sdch",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  },
  "body_params": {}
}
GET /search?term=true_love
{
  "scheme": "http",
  "query_params": {
    "term": "true_love"
  },
  "path": "/search",
  "method": "GET",
  "host": "localhost",
  "headers": {
    "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36",
    "upgrade-insecure-requests": "1",
    "host": "localhost:4000",
    "connection": "keep-alive",
    "accept-language": "en-US,en;q=0.8,de;q=0.6",
    "accept-encoding": "gzip, deflate, sdch",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
  },
  "body_params": {}
}

Limitations

Currently the followin HTTP methods are supported:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • OPTIONS
  • CONNECT
  • TRACE

HEAD is not supported as for some reason a HEAD request always returns an empty body.

byzal's People

Watchers

James Cloos avatar

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.