restjson

package
v1.44.328 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 26 modules, 1,350 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package restjson provides RESTful JSON serialization of AWS requests and responses.

Index

Constants

This section is empty.

Variables

View Source
var BuildHandler = request.NamedHandler{
	Name: "awssdk.restjson.Build",
	Fn:   Build,
}

BuildHandler is a named request handler for building restjson protocol requests

View Source
var UnmarshalErrorHandler = request.NamedHandler{
	Name: "awssdk.restjson.UnmarshalError",
	Fn:   UnmarshalError,
}

UnmarshalErrorHandler is a named request handler for unmarshaling restjson protocol request errors

View Source
var UnmarshalHandler = request.NamedHandler{
	Name: "awssdk.restjson.Unmarshal",
	Fn:   Unmarshal,
}

UnmarshalHandler is a named request handler for unmarshaling restjson protocol requests

View Source
var UnmarshalMetaHandler = request.NamedHandler{
	Name: "awssdk.restjson.UnmarshalMeta",
	Fn:   UnmarshalMeta,
}

UnmarshalMetaHandler is a named request handler for unmarshaling restjson protocol request metadata

Functions

func Build

func Build(r *request.Request)

Build builds a request for the REST JSON protocol.

func Unmarshal

func Unmarshal(r *request.Request)

Unmarshal unmarshals a response body for the REST JSON protocol.

func UnmarshalError

func UnmarshalError(r *request.Request)

UnmarshalError unmarshals a response error for the REST JSON protocol.

func UnmarshalMeta

func UnmarshalMeta(r *request.Request)

UnmarshalMeta unmarshals response headers for the REST JSON protocol.

Types

type UnmarshalTypedError added in v1.28.0

type UnmarshalTypedError struct {
	// contains filtered or unexported fields
}

UnmarshalTypedError provides unmarshaling errors API response errors for both typed and untyped errors.

func NewUnmarshalTypedError added in v1.28.0

func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata) error) *UnmarshalTypedError

NewUnmarshalTypedError returns an UnmarshalTypedError initialized for the set of exception names to the error unmarshalers

func (*UnmarshalTypedError) UnmarshalError added in v1.28.0

func (u *UnmarshalTypedError) UnmarshalError(
	resp *http.Response,
	respMeta protocol.ResponseMetadata,
) (error, error)

UnmarshalError attempts to unmarshal the HTTP response error as a known error type. If unable to unmarshal the error type, the generic SDK error type will be used.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL