github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/apiserver/http/http.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package http 5 6 // DigestAlgorithm is one of the values in the IANA registry. See 7 // RFC 3230 and 5843. 8 type DigestAlgorithm string 9 10 const ( 11 // DigestSHA is the HTTP digest algorithm value used in juju's HTTP code. 12 DigestSHA DigestAlgorithm = "SHA" 13 14 // The values used for content-type in juju's direct HTTP code: 15 16 // CTypeJSON is the HTTP content-type value used for JSON content. 17 CTypeJSON = "application/json" 18 // CTypeRaw is the HTTP content-type value used for raw, unformattedcontent. 19 CTypeRaw = "application/octet-stream" 20 )