Giter VIP home page Giter VIP logo

serve's Issues

Migrate from Travis to GitHub Actions

Provide multiple asynchronous workflows to replace the CI & CD that's currently provided by Travis:

  • go test
  • go modules && verification
  • golangci-lint
  • goreleaser

Don't forget to remove .travis.yml and update the readme shield

Enable dependabot

Enable dependabot for the repository!

Look into what other OSS projects are doing to keep their code updated, but also not be super annoying to everyone.

Support for MIME types as option

I would like to see the headers like "application/javascript" in the .js file.
Some problems like Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. (from chrome) could occur, so I'm willing to get this feature. Thank you for creating this, I used a lot

HTTP methods

Hello,

serve response contains header

access-control-allow-methods: HEAD, OPTIONS, GET, POST, PUT, PATCH, DELETE

but it isn't clear how to get key/value posted via POST method on the server side.

Could please clarify this?

Suggest

Can user authentication be added?

Feature Request: Status Codes to logs

It would be nice to see the status code in the logs, e.g.:

~ » serve
[serve] 2019/01/28 19:59:17 http server listening at 0.0.0.0:8080
[serve] 2019/01/28 19:59:28 GET /i-do-not-exist [::1]:49835 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

I was looking at our statically build website and one resource could not be loaded - impossible to sport with serve's logs currently :)

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.