-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
34 lines (29 loc) · 1.32 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2021 Wrangle Ltd
package api
const (
// CTCSV is content type for CSV payload
CTCSV = "text/csv"
// CTJSON is content type for Json payload
CTJSON = "application/json"
// CTUploadPackResult is content type for upload pack result payload
CTUploadPackResult = "application/x-wrgl-upload-pack-result"
// CTPackfile is content type for packfile payload
CTPackfile = "application/x-wrgl-packfile"
// CTBlocksBinary is content type for blocks binary payload
CTBlocksBinary = "application/x-wrgl-blocks-binary"
// CTReceivePackResult is content type for receive pack result payload
CTReceivePackResult = "application/x-wrgl-receive-pack-result"
// CookieReceivePackSession identifies receive-pack session
CookieReceivePackSession = "receive-pack-session-id"
// CookieUploadPackSession identifies upload-pack session
CookieUploadPackSession = "upload-pack-session-id"
// HeaderPurgeUploadPackSession is a trailer header that is set to "true"
// at the end of an upload pack session. Upon seeing this any in-between proxy
// should purge sticky session related to CookieUploadPackSession
HeaderPurgeUploadPackSession = "Wrgl-Purge-Upload-Pack-Session"
PathCommit = "/commits/"
PathRefs = "/refs/"
PathReceivePack = "/receive-pack/"
PathUploadPack = "/upload-pack/"
)