Code Monkey home page Code Monkey logo

Comments (6)

svanimpe avatar svanimpe commented on May 4, 2024

Using the Response class does work:

app.get("welcome") { request in
  let response = Response(status: .OK, text: "Hello from Vapor")
  return response
}

from vapor.

svanimpe avatar svanimpe commented on May 4, 2024

A possible fix is to change extension String: ResponseConvertible to extension Swift.String: ResponseConvertible in ResponseConvertible.swift. Maybe type String is referring to NSString from Foundation?

from vapor.

tanner0101 avatar tanner0101 commented on May 4, 2024

Is this happening on OS X or Ubuntu?

If you can confirm Swift.String fixes it, could you create that as a PR?

from vapor.

svanimpe avatar svanimpe commented on May 4, 2024

As the original comment said: "I'm running on Ubuntu 15.10 using the March 1 snapshot of Swift and Vapor 0.2.8."
The change fixed it for me. I'll create it a pull request so others can try it out as well.

from vapor.

tanner0101 avatar tanner0101 commented on May 4, 2024

Oh sorry, missed the last line. A PR would be great.

from vapor.

loganwright avatar loganwright commented on May 4, 2024

Linking: #117

from vapor.

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.