Giter VIP home page Giter VIP logo

chttpparser's Introduction

Kitura

A Swift Web Framework and HTTP Server

Docs Build Status - Master macOS Linux Apache 2 codecov codebeat badge Slack Status

Summary

Kitura is a web framework and web server that is created for web services written in Swift. For more information, visit www.kitura.dev.

Table of Contents

Features

  • URL routing (e.g., GET, POST, PUT, DELETE, PATCH)
  • Codable routing
  • URL parameters
  • Static file serving
  • FastCGI support
  • SSL/TLS support
  • Pluggable middleware

Getting Started

Visit https://www.kitura.dev for a Getting Started guide, tutorials, and API reference documentation.

Contributing to Kitura

All improvements to Kitura are very welcome! Here's how to get started with developing Kitura itself.

  1. Clone this repository.

$ git clone https://github.com/Kitura/Kitura

  1. Build and run tests.

$ swift test

You can find more info on contributing to Kitura in our contributing guidelines.

Notes

  • Swift-NIO is now the default network engine via the Kitura-NIO package. If for some reason you require the old Kitura-net package, you can still enable it by setting an environment variable KITURA_NIO=0 during build.
  • Most Kitura packages have been updated to require at least Swift 5.2 in order to maintain backward compatibility.

Community

We love to talk server-side Swift, and Kitura. Join our Slack to meet the team!

chttpparser's People

Contributors

carlbrown avatar dannys42 avatar dfirsht avatar ianpartridge avatar quanvo87 avatar rfdickerson avatar shmuelk avatar youming-lin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chttpparser's Issues

Linker error with Xcode generated project using Kitura 0.13 and Toolchain 05-03

This has been identified as an issue in Swift Package Manager. A bug has been filed against the Package Manager here.
https://bugs.swift.org/browse/SR-1441

Using Kitura 0.13, the Trunk Development Toolchain 05-03 and running "swift build -X" produces this Xcode linker error.

ld: library not found for -lCHttpParser for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

04-25 Toolchain works OK.

v 0.1.1 breaks Kitura-net 0.11.4

Version 0.1.1 of CHttpParser removes the dependency on the system installed lib-http-parser and brings it "in-house". This means that it creates libCHttpParser.so in my .build/debug/TestApp directory.

When I run my app (./.build/debug/TestApp), I get:

.build/debug/TestApp: error while loading shared libraries: libCHttpParser.so: cannot open shared object file: No such file or directory

To resolve, I had to put in a symlink: sudo ln -s /src/TestApp/.build/debug/libCHttpParser.so /usr/lib/libCHttpParser.so

How do I avoid this?

Linux runtime error - libCHttpParser.so not found

0.11.3 was working, but with the changes in 0.11.4, the following run time error occurs:

./.build/debug/appname: error while loading shared libraries: libCHttpParser.so: cannot open shared object file: No such file or directory

Notes:

  • This app was built using the 'ibmcom/kitura-ubuntu:latest' docker image:
  • Linking in Xcode works fine.
  • This might be caused by the 'link "CHttpParser"' line in the module.modulemap

Linking CHttpParser /usr/bin/ld: error: cannot find -ldispatch

Hi
i am trying to create a docker image Docker file

Docker File:

FROM ibmcom/kitura-ubuntu:latest
USER root
ENV PATH /usr/bin:$PATH

RUN mkdir -p /SwiftClientApi

WORKDIR /SwiftClientApi

ADD . /SwiftClientApi

# Print Installed Swift Version
#RUN swift --version

RUN swift build -Xcc -fblocks -Xlinker -ldispatch
#RUN swift build

EXPOSE 8090
CMD .build/debug/ClientApi

getting following error:

Removing intermediate container 666b67a68112
Step 7 : RUN swift build -Xcc -fblocks -Xlinker -ldispatch
 ---> Running in a2021b9357e9
Compile CHttpParser utils.c
Compile CHttpParser http_parser.c
Compile Swift Module 'KituraTemplateEngine' (1 sources)
Compile Swift Module 'SwiftyJSON' (2 sources)
Compile Swift Module 'Socket' (3 sources)
Compile Swift Module 'LoggerAPI' (1 sources)
clang: warning: argument unused during compilation: '-Xcc'
clang: warning: argument unused during compilation: '-Xcc'
Linking CHttpParser
/usr/bin/ld: error: cannot find -ldispatch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
swift-build: error: exit(1): /root/swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a-ubuntu14.04/usr/bin/swift-build-tool -f /SwiftClientApi/.build/debug.yaml
The command '/bin/sh -c swift build -Xcc -fblocks -Xlinker -ldispatch' returned a non-zero code: 1

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.