github.com/blend/go-sdk@v1.20220411.3/r2/constants.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package r2 9 10 import "github.com/blend/go-sdk/webutil" 11 12 const ( 13 // TestURL can be used in tests for the URL passed to r2.New(...) 14 // 15 // The URL itself sets `https` as the scheme, `test.invalid` as the host, 16 // `/test` as the path, and `query=value` as the querystring. 17 // 18 // Note: .invalid is a top level special domain that will _never_ be assigned 19 // to a real registrant, it is always reserved for testing. 20 // See: https://www.iana.org/domains/reserved 21 TestURL = webutil.TestURL 22 ) 23 24 const ( 25 // MethodGet is a method. 26 MethodGet = webutil.MethodGet 27 // MethodPost is a method. 28 MethodPost = webutil.MethodPost 29 // MethodPut is a method. 30 MethodPut = webutil.MethodPut 31 // MethodPatch is a method. 32 MethodPatch = webutil.MethodPatch 33 // MethodDelete is a method. 34 MethodDelete = webutil.MethodDelete 35 // MethodOptions is a method. 36 MethodOptions = webutil.MethodOptions 37 ) 38 39 var ( 40 // HeaderConnection is a http header. 41 HeaderConnection = webutil.HeaderConnection 42 // HeaderContentType is a http header. 43 HeaderContentType = webutil.HeaderContentType 44 ) 45 46 const ( 47 // ConnectionKeepAlive is a connection header value. 48 ConnectionKeepAlive = webutil.ConnectionKeepAlive 49 ) 50 51 const ( 52 // ContentTypeApplicationJSON is a content type header value. 53 ContentTypeApplicationJSON = webutil.ContentTypeApplicationJSON 54 // ContentTypeApplicationXML is a content type header value. 55 ContentTypeApplicationXML = webutil.ContentTypeApplicationXML 56 // ContentTypeApplicationFormEncoded is a content type header value. 57 ContentTypeApplicationFormEncoded = webutil.ContentTypeApplicationFormEncoded 58 // ContentTypeApplicationOctetStream is a content type header value. 59 ContentTypeApplicationOctetStream = webutil.ContentTypeApplicationOctetStream 60 )