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

OSCHINA-MIRROR/lunny-xweb

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
status.go 2.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Lunny Xiao Отправлено 22.06.2013 13:50 a25aed5
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package xweb
import "net/http"
var statusText = map[int]string{
http.StatusContinue: "Continue",
http.StatusSwitchingProtocols: "Switching Protocols",
http.StatusOK: "OK",
http.StatusCreated: "Created",
http.StatusAccepted: "Accepted",
http.StatusNonAuthoritativeInfo: "Non-Authoritative Information",
http.StatusNoContent: "No Content",
http.StatusResetContent: "Reset Content",
http.StatusPartialContent: "Partial Content",
http.StatusMultipleChoices: "Multiple Choices",
http.StatusMovedPermanently: "Moved Permanently",
http.StatusFound: "Found",
http.StatusSeeOther: "See Other",
http.StatusNotModified: "Not Modified",
http.StatusUseProxy: "Use Proxy",
http.StatusTemporaryRedirect: "Temporary Redirect",
http.StatusBadRequest: "Bad Request",
http.StatusUnauthorized: "Unauthorized",
http.StatusPaymentRequired: "Payment Required",
http.StatusForbidden: "Forbidden",
http.StatusNotFound: "Not Found",
http.StatusMethodNotAllowed: "Method Not Allowed",
http.StatusNotAcceptable: "Not Acceptable",
http.StatusProxyAuthRequired: "Proxy Authentication Required",
http.StatusRequestTimeout: "Request Timeout",
http.StatusConflict: "Conflict",
http.StatusGone: "Gone",
http.StatusLengthRequired: "Length Required",
http.StatusPreconditionFailed: "Precondition Failed",
http.StatusRequestEntityTooLarge: "Request Entity Too Large",
http.StatusRequestURITooLong: "Request URI Too Long",
http.StatusUnsupportedMediaType: "Unsupported Media Type",
http.StatusRequestedRangeNotSatisfiable: "Requested Range Not Satisfiable",
http.StatusExpectationFailed: "Expectation Failed",
http.StatusInternalServerError: "Internal Server Error",
http.StatusNotImplemented: "Not Implemented",
http.StatusBadGateway: "Bad Gateway",
http.StatusServiceUnavailable: "Service Unavailable",
http.StatusGatewayTimeout: "Gateway Timeout",
http.StatusHTTPVersionNotSupported: "HTTP Version Not Supported",
}

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

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

1
https://api.gitlife.ru/oschina-mirror/lunny-xweb.git
git@api.gitlife.ru:oschina-mirror/lunny-xweb.git
oschina-mirror
lunny-xweb
lunny-xweb
master