The Wayback Machine - https://web.archive.org/web/20200716035029/https://github.com/topics/router
Skip to content
#

router

Here are 2,607 public repositories matching this topic...

KernelDeimos
KernelDeimos commented Nov 16, 2019

Description

Using the fetch API from WHATWG in Google Chrome, an image upload does not have Content-Type multipart/form-data. Instead, the content type is set to the MIME type (ex: image/jpeg) with a boundary parameter. Setting Content-Type explicitly to multipart/form-data should result in an error (and it does).

How to reproduce

Follow an existing image upload example from

krotscheck
krotscheck commented Mar 3, 2020

HTTP 301 redirects - as per implementation convention in browsers - do not enforce that the HTTP Method should be retained when a client is moved to the new location. This is useful, in that a POST creation request can redirect to the newly generated resource as a GET. However, in situations where a POST request itself needs to be redirected before it can be served, this is not useful.

In the

Manidos
Manidos commented Aug 1, 2019

Hey!

Render function can be used as a standalone library var render = require("mithril/render")
Since it requires a vnode as the second argument, my question is how to create a vnode? Is there a standalone tool than can be imported from mithril?

I tried feeding hyperscript vnode to render function, but it didn't work.

var h = require('hyperscript')
m.render(body.document,
liaodq
liaodq commented Sep 3, 2019

doInterceptions方法里有对Warehouse.interceptors的判断

if (null != Warehouse.interceptors && Warehouse.interceptors.size() > 0){
      checkInterceptorsInitStatus();
      ......
}

Warehouse.interceptors是在InterceptorServiceImpl#init里新线程里完成添加的

         IInterceptor iInterceptor = interceptorClass.getConstructor().newInstance();
         iInterceptor.init(context);
bug
rogpeppe
rogpeppe commented Nov 16, 2015

The documentation does not make it clear whether
paths of the form:

/prefix:foo

are allowed. These are currently supported by httprouter,
but don't seem quite in the spirit of its simple specification
(you can't have statically defined suffixes for a path element,
so why should you be allowed a statically defined prefix?)

This form:

/prefix*foo

is similarly not specified but i

bug
vector
gpism
gpism commented Nov 7, 2019

Hi This project is amazing and I want to contribute but I noticed there is no developer documentation also this project doesn't not seem to use platformIO or Arduino ...so no clue how to start ....is possible to provide documentation ...like which module does what and how compile /build .........even better if its possible to convert to platformio project

animamundi
animamundi commented Aug 29, 2017
import {Middleware, ExpressErrorMiddlewareInterface} from "routing-controllers";

@Middleware({ type: "after" })
export class CustomErrorHandler implements ExpressErrorMiddlewareInterface {

    error(error: any, request: any, response: any, next: (err: any) => any) {
        console.log("do something...");
        next();
    }

}

This example code from the docume

Improve this page

Add a description, image, and links to the router topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the router topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.