Giter VIP home page Giter VIP logo

customwsgiwebserver's Introduction

Web Server

What is a web server?

It is a server running on the physical/vm server that receives the request from the client using the HTTP protocol and returns the HTTP response.

The client can be a website or any other program that is using HTTP to communicate over the network.

We make use of sockets. Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while the other socket reaches out to the other to form a connection.

Sockets basics: https://www.geeksforgeeks.org/socket-programming-python

Socket options: https://notes.shichao.io/unp/ch7/#getsockopt-and-setsockopt-functions

Before the client sends the http request, it needs to establish the TCP connection with the web server. Once the connection is established, the client sends the HTTP request over the TCP connection and waits for the HTTP response from the webserver.

The TCP connection is initiated from the client and to establish that, both client and server use sockets.

Integrate any web framework with your web server

Before we move ahead, we need to understand what WSGI is.

WSGI (Web Server Gateway Interface)

The Web Server Gateway Interface is a simple calling convention for web servers to forward requests to web applications or frameworks written in the Python programming language. (coming straight at'ya via wiki)

All the Web Servers must implement the WSGI integration which allows us to use and integrate any python web framework onto the Web Server. Think of it as a protocol.

NOTE: WSGI support needs to be handled from both the webserver and the weframework.

Sources:

customwsgiwebserver's People

Contributors

karankumarshreds avatar

Stargazers

Shreya Singh avatar

Watchers

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