package rest
import "github.com/aws/aws-sdk-go-v2/private/protocol/rest"
Package rest provides RESTful serialization of AWS requests and responses.
Index ¶
- Constants
- Variables
- func Build(r *request.Request)
- func BuildAsGET(r *request.Request)
- func EscapePath(path string, encodeSep bool) string
- func PayloadMember(i interface{}) interface{}
- func PayloadType(i interface{}) string
- func Unmarshal(r *request.Request)
- func UnmarshalMeta(r *request.Request)
Constants ¶
const RFC822 = "Mon, 2 Jan 2006 15:04:05 GMT"
RFC822 returns an RFC822 formatted timestamp for AWS protocols
Variables ¶
var BuildHandler = request.NamedHandler{Name: "awssdk.rest.Build", Fn: Build}
BuildHandler is a named request handler for building rest protocol requests
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.rest.Unmarshal", Fn: Unmarshal}
UnmarshalHandler is a named request handler for unmarshaling rest protocol requests
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta", Fn: UnmarshalMeta}
UnmarshalMetaHandler is a named request handler for unmarshaling rest protocol request metadata
Functions ¶
func Build ¶
Build builds the REST component of a service request.
func BuildAsGET ¶
BuildAsGET builds the REST component of a service request with the ability to hoist data from the body.
func EscapePath ¶
EscapePath escapes part of a URL path in Amazon style
func PayloadMember ¶
func PayloadMember(i interface{}) interface{}
PayloadMember returns the payload field member of i if there is one, or nil.
func PayloadType ¶
func PayloadType(i interface{}) string
PayloadType returns the type of a payload field member of i if there is one, or "".
func Unmarshal ¶
Unmarshal unmarshals the REST component of a response in a REST service.
func UnmarshalMeta ¶
UnmarshalMeta unmarshals the REST metadata of a response in a REST service
Source Files ¶
build.go payload.go unmarshal.go
- Version
- v2.0.0-preview.1+incompatible
- Published
- Dec 21, 2017
- Platform
- windows/amd64
- Imports
- 15 packages
- Last checked
- 9 minutes ago –
Tools for package owners.