Code Monkey home page Code Monkey logo

Comments (5)

kevinresol avatar kevinresol commented on July 26, 2024

ok it is due to utf8 characters:

import tink.http.Response;
import tink.http.Header;

using tink.CoreApi;

class Main {
    static function main() {
        var container = new tink.http.containers.NodeContainer(8123);
        container.run(function(req) return Future.sync(new OutgoingResponse(
            new ResponseHeader(500, '錯誤', []),
            ''
        ))).eager();
    }
}

from tink_http.

back2dos avatar back2dos commented on July 26, 2024

I see. I suppose we should just use standard messages and put the actual message in the body. Which reminds me: how do you feel about merging your http-status into tink_http?

from tink_http.

kevinresol avatar kevinresol commented on July 26, 2024

What about simply adding a dependency? 😄
Then simply typedef tink.http.StatusCode = httpstatus.StatusCode

from tink_http.

back2dos avatar back2dos commented on July 26, 2024

Or that ;)

from tink_http.

kevinresol avatar kevinresol commented on July 26, 2024

hmmm.. too bad the commit message can't close the issue unless on main branch

from tink_http.

Related Issues (20)

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.