• Stars
    star
    735
  • Rank 61,652 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🌾A progressive http server for Deno🌾

DEPRECADED!

This projected has been deprecated and no longer maintained. No PR/Issues will be responded.

servest

Build Status https://img.shields.io/github/tag/keroxp/servest.svg license

🌾A progressive http server for Deno🌾

Description

Servest is a http module suite for Deno. It is composed of three major APIs of HTTP protocol:

  • App API: General purpose HTTP routing server.
  • Server API: Low-level HTTP API for processing HTTP/1.1 requests.
  • Agent API: Low-level API for managing HTTP/1.1 Keep-Alive connection to the host.

In order to experiment and be progressive, we have our own implementation of HTTP/1.1 server apart from std/http.

Usage

// @deno-types="https://deno.land/x/servest/types/react/index.d.ts"
import React from "https://dev.jspm.io/react/index.js";
// @deno-types="https://deno.land/x/servest/types/react-dom/server/index.d.ts"
import ReactDOMServer from "https://dev.jspm.io/react-dom/server.js";
import { createApp } from "https://deno.land/x/servest/mod.ts";

const app = createApp();
app.handle("/", async (req) => {
  await req.respond({
    status: 200,
    headers: new Headers({
      "content-type": "text/html; charset=UTF-8",
    }),
    body: ReactDOMServer.renderToString(
      <html>
        <head>
          <meta charSet="utf-8" />
          <title>servest</title>
        </head>
        <body>Hello Servest!</body>
      </html>,
    ),
  });
});
app.listen({ port: 8888 });

License

MIT

More Repositories

1

deno-couchdb

🦕CouchDB client for Deno built top of fetch 🛋
TypeScript
66
star
2

dlink

🦕Deno module linker 🔗
TypeScript
45
star
3

deno-streams

WHATWG streams API for deno
TypeScript
28
star
4

denode

Deno polyfill for Node.js
TypeScript
26
star
5

deno-ws

[Deprecated] Now deno-ws are part of https://github.com/denoland/deno_std, use it.
TypeScript
26
star
6

dino

1KB type safe DI (Dependency Injection) library for Deno/Node
TypeScript
19
star
7

deno_plugin_example

Example repository of rust plugin for Deno
Rust
16
star
8

deno-imaging

Imaging utility for Deno
Rust
16
star
9

deno-request

[Deprecated] integrated into https://github.com/keroxp/servest
TypeScript
12
star
10

tsb

TypeScript/JavaScript module bundler for ESModule
TypeScript
11
star
11

tsm

TypeScript module transpiler from CommonJS to Pure ESModule
TypeScript
8
star
12

UniCommon

ゆにこもん - Unity Common Library
C#
7
star
13

BullBones

Research on computer-supported sketch drawing systems.
Haxe
7
star
14

deno-fetch

WHATWG fetch for deno, based on dial and WHATWG streams
TypeScript
6
star
15

shake

A minimal shell task runner inspired by GNU Make
Go
5
star
16

Gyazz-for-iPhone

GyazzのiOSインターフェース
Objective-C
4
star
17

heroku-buildpack-haxe

haxe buildpack for heroku
Shell
3
star
18

HeartCatchIME

\ハートキャッチ!/と入力するためだけ\ハートキャッチ!/\ハートキャッチ!/
Objective-C
2
star
19

upk

A simple, open, decentralized package manager for Unity3D
TypeScript
2
star
20

qwerty-flick

qwertyでもフリックしたい。
JavaScript
2
star
21

deno-multipart

[Deprecated] now part of https://github.com/denoland/deno_std
TypeScript
2
star
22

KXLazyTableImage

UITableView+LazyImageDownload with aspect-oriened programming
Objective-C
2
star
23

Blossom-Android

Android用日本語キーボード
Java
2
star
24

Blossom-iOS

SoftwareKeyboard for iOS
Objective-C
2
star
25

memlim

Size-limited in-memory cache for Node.js and Browsers.
TypeScript
2
star
26

node-webkit-file-browser

Native file browser built with node-webkit, html, css and JavaScript.
JavaScript
2
star
27

blender-mechanim-rig

UnityのMechanimに対応した、最小構成のblenderリグファイルです
2
star
28

Diamond

Client Side Ojective-C Model & Collection Framework
Objective-C
1
star
29

sounds

TypeScript
1
star
30

izanami.js

Web-Comic viewr by javascript
JavaScript
1
star
31

duelmeter

TypeScript
1
star
32

PuzzDlua

luaでパズドラモドキ
C++
1
star
33

KXCollection

A polymorpohic collection class for objc
Objective-C
1
star
34

KeyHelper

Incremental short-cut-key search.
JavaScript
1
star
35

izanagi.js

Web-Document-Viewr by javascript
JavaScript
1
star
36

deno-github

Github REST API v3 client for Deno
TypeScript
1
star
37

literate-json-validator

a literate runtime json validator for groovy, java
Groovy
1
star
38

KXEventEmitter

An EventEmitter for objc, using NSNotificationCenter internally
Objective-C
1
star
39

keroxp-bot

LINE Bot built with Spring-Boot, Kotlin
Kotlin
1
star
40

CoherentEdgeDetector

Detect and Extract Coherent-Edge from Image
Kotlin
1
star