Giter Club home page Giter Club logo

route's Introduction

Route

Host("localhost") && Method(http.MethodPost) && Path("/v1")
Host("localhost") && Method(http.MethodPost) && Path("/v1") && Header("Content-Type", "application/<string>")

HTTP request routing language and library.

Features:

  • Trie based matching
  • Regexp based matching
  • Matches hosts, headers, methods and paths
  • Flexible matching language

Documentation:

http://godoc.org/github.com/vulcand/route

route's People

Contributors

archis-polyverse avatar dependabot[bot] avatar gierlas avatar klizhentas avatar ldez avatar r0mant avatar thrawn01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

route's Issues

Negation

As far as I can tell, this doesn't work:

Path(`/foo/<value>`) && !Host(`bar.<domain>`)

Removing the negation ("!") allows it to work.

It'd be great if negation were allowed in the syntax.

Or expression

Similar to #8 it looks like the OR boolean operator (||) is not supported either.

HostRegexp invalid?

Receiving this error when setting a frontend up in VulcanD:

route should be a valid route expression

Here's the route im attempting to add:

frontend upsert --backend mockbin --id=mockbin --route 'HostRegexp("^mockbin\..*")'

I verified my regex using Rubular: http://rubular.com/r/qQiGivbXQ4

Thoughts?

client IP matcher

Add new matcher & regexpMatcher which match against http.Request RemoteAddr value.

Feature Request: Weight()

So we can implement weighted round robin balancing just by using this function in vulcan's frontends or listener scopes. This allows us to do graceful deployment (canary deployment?) of new versions and lets it run for a while.

Port matcher

Why don't you add port matcher? I'd like to change routing depending on host & port combination in vulcand

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.