Coder Social home page Coder Social logo

apprentice-echo-server's Introduction

Build Status

Echo & Http/1.1 Server

EchoServer

A simple terminal based server that accepts input from an external connection and outputs given text input.

Connecting to Server

Domain: ec2-18-220-252-158.us-east-2.compute.amazonaws.com

Port: 5000

Example with netcat (via Terminal):

nc ec2-18-220-252-158.us-east-2.compute.amazonaws.com 5000

Usage

Enter any text and press enter.

some text
=> some text 

Http Server

A basic server that processes simple http requests. Limited support for media data and DELETE, PUT and PATCH requests.

Connecting to Server

Domain: ec2-18-220-252-158.us-east-2.compute.amazonaws.com

Port: 2500

Valid Request Paths:

  • GET /not_found
  • GET /simple_get
  • GET /cool_gif
  • GET /get_with_body
  • GET /redirect
  • HEAD /simple_get
  • HEAD /get_with_body
  • POST /echo_body
  • OPTIONS /method_options
  • OPTIONS /method_options2

** OPTIONS for any defined route

Usage

  • Get requests can be accessed via any browser
  • Compatible with server tools such as cURL and Postman

Browser Example

cURL Example:

curl -X OPTIONS ec2-18-220-252-158.us-east-2.compute.amazonaws.com:2500/method_options

General Response Example

* Trying 18.220.252.158...
* TCP_NODELAY set
* Connected to ec2-18-220-252-158.us-east-2.compute.amazonaws.com (18.220.252.158) port 2500 (#0)
> GET /redirect HTTP/1.1
> Host: ec2-18-220-252-158.us-east-2.compute.amazonaws.com:2500
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 301
< Location: http://ec2-18-220-252-158.us-east-2.compute.amazonaws.com:2500/simple_get
* no chunk, no close, no size. Assume close to signal end

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

apprentice-echo-server's People

Contributors

naomi-dennis avatar

Watchers

James Cloos avatar Damon Kelley avatar  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.