1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-go-restful

Клонировать/Скачать
router.go 766
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
iainduncani Отправлено 28.01.2018 12:30 406aeb2
package restful
// Copyright 2013 Ernest Micklei. All rights reserved.
// Use of this source code is governed by a license
// that can be found in the LICENSE file.
import "net/http"
// A RouteSelector finds the best matching Route given the input HTTP Request
// RouteSelectors can optionally also implement the PathProcessor interface to also calculate the
// path parameters after the route has been selected.
type RouteSelector interface {
// SelectRoute finds a Route given the input HTTP Request and a list of WebServices.
// It returns a selected Route and its containing WebService or an error indicating
// a problem.
SelectRoute(
webServices []*WebService,
httpRequest *http.Request) (selectedService *WebService, selected *Route, err error)
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-go-restful.git
git@api.gitlife.ru:oschina-mirror/mirrors-go-restful.git
oschina-mirror
mirrors-go-restful
mirrors-go-restful
v3