Git Product home page Git Product logo

bashttp's People

Contributors

igtulm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bashttp's Issues

Refactoring: Split functionality to modules

There is a need to split the functionality to modules as the application grows. Bash doesn't provide any convenient includes. To include different parts of the application 'source' is used. It pastes a text of a file specified to main program. So, we can have functions with the same names. To prevent this we can simulate namespaces by adding prefix, for instance, module name to each function in current module.

Bug: Host header MUST be required

According to RFC 2616 "19.6.1.1 Changes to Simplify Multi-homed Web Servers and Conserve IP Addresses":
"The requirements that clients and servers support the Host request-header, report an error if the Host request-header (section 14.23) is missing from an HTTP/1.1 request, and accept absolute URIs (section 5.1.2) are among the most important changes defined by this specification."

Feature: Content type for html files

Edge browser tries to download html files without correct content-type header received from bashttp.
Need to add content type for html files.

Bug: server response code is incorrect

Functions (such as 'try_route') return a code for server response. But this code is a function's own exit status which could be a 8-bit value from 0 to 255, where 0 means "success". Now it is unable to return, for example, 404 response code. Need to fix and improve that logic.

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.