HttpMalformedRequestDefinition

smithy.test.HttpMalformedRequestDefinition
See theHttpMalformedRequestDefinition companion object
final case class HttpMalformedRequestDefinition(method: String, uri: String, host: Option[String], queryParams: Option[List[String]], headers: Option[Map[String, String]], body: Option[String])

Value parameters

body

The HTTP message body to include in the request

headers

Defines a map of HTTP headers to include in the request

host

The host / endpoint provided to the client, not including the path or scheme (for example, "example.com").

method

The HTTP request method.

queryParams

A list of the serialized query string parameters to include in the request. Each element in the list is a query string key value pair that starts with the query string parameter name optionally followed by "=", optionally followed by the query string parameter value. For example, "foo=bar", "foo=", and "foo" are all valid values. The query string parameter name and the value MUST appear in the format in which it is expected to be sent over the wire; if a key or value needs to be percent-encoded, then it MUST appear percent-encoded in this list.

uri

The request-target of the HTTP request, not including the query string (for example, "/foo/bar").

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product