Skip to content

Latest commit

 

History

History

grpc_ruby-pre-header_modify

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

#Tyk Plugin Demo Ruby

This plugin will allow users to write middleware for Tyk using Ruby.

##Build Requirements

##Usage

  1. Clone and build Tyk locally with the coprocess grpc build tag:

     go build -tags 'coprocess grpc'
    
  2. Clone this repo and cd into its location on your filesystem. This repo contains the Sample Server which you can run using the following command:

     ruby sample_server.rb
    
  3. In another terminal, run your tyk instance. A simple way to do this would be to navigate into the tyk repository from step 1 and run the following:

     ./tyk
    
  4. In a third terminal navigate back to your cloned version of this repo and run the following cURL request:

     curl -v http://localhost:8080/grpc-api-test/headers
    

This will then make a request to the server using the middleware defined in the grpc_app_sample.json file.

License

This project is released under the MPL v2.0. See full version of the license.