http.go (2225B)
1 package traits 2 3 import smithy "github.com/aws/smithy-go" 4 5 // HTTPHeader represents smithy.api#httpHeader. 6 type HTTPHeader struct { 7 Name string 8 } 9 10 // TraitID identifies the trait. 11 func (*HTTPHeader) TraitID() smithy.ShapeID { 12 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpHeader"} 13 } 14 15 // HTTPLabel represents smithy.api#httpLabel. 16 type HTTPLabel struct{} 17 18 // TraitID identifies the trait. 19 func (*HTTPLabel) TraitID() smithy.ShapeID { 20 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpLabel"} 21 } 22 23 // HTTPPayload represents smithy.api#httpPayload. 24 type HTTPPayload struct{} 25 26 // TraitID identifies the trait. 27 func (*HTTPPayload) TraitID() smithy.ShapeID { 28 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpPayload"} 29 } 30 31 // HTTPPrefixHeaders represents smithy.api#httpPrefixHeaders. 32 type HTTPPrefixHeaders struct { 33 Prefix string 34 } 35 36 // TraitID identifies the trait. 37 func (*HTTPPrefixHeaders) TraitID() smithy.ShapeID { 38 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpPrefixHeaders"} 39 } 40 41 // HTTPQuery represents smithy.api#httpQuery. 42 type HTTPQuery struct { 43 Name string 44 } 45 46 // TraitID identifies the trait. 47 func (*HTTPQuery) TraitID() smithy.ShapeID { 48 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpQuery"} 49 } 50 51 // HTTPQueryParams represents smithy.api#httpQueryParams. 52 type HTTPQueryParams struct{} 53 54 // TraitID identifies the trait. 55 func (*HTTPQueryParams) TraitID() smithy.ShapeID { 56 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpQueryParams"} 57 } 58 59 // HTTPResponseCode represents smithy.api#httpResponseCode. 60 type HTTPResponseCode struct{} 61 62 // TraitID identifies the trait. 63 func (*HTTPResponseCode) TraitID() smithy.ShapeID { 64 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpResponseCode"} 65 } 66 67 // HTTP represents smithy.api#http. 68 type HTTP struct { 69 Method string 70 URI string 71 Code int 72 } 73 74 // TraitID identifies the trait. 75 func (*HTTP) TraitID() smithy.ShapeID { return smithy.ShapeID{Namespace: "smithy.api", Name: "http"} } 76 77 // HTTPError represents smithy.api#httpError. 78 type HTTPError struct { 79 Code int 80 } 81 82 // TraitID identifies the trait. 83 func (*HTTPError) TraitID() smithy.ShapeID { 84 return smithy.ShapeID{Namespace: "smithy.api", Name: "httpError"} 85 }