Module pact_matching::models[][src]

The models module provides all the structures required to model a Pact.

Modules

generators

generators module includes all the classes to deal with V3 format generators

json_utils

Collection of utilities for working with JSON

matchingrules

matchingrules module includes all the classes to deal with V3 format matchers

message

The message module provides all functionality to deal with messages.

provider_states

provider_states module contains all the logic for dealing with provider states. See http://docs.pact.io/documentation/provider_states.html for more info on provider states.

xml_utils

Collection of utilities for working with XML

Structs

Consumer

Struct that defines the consumer of the pact.

Interaction

Struct that defines an interaction (request and response pair)

Pact

Struct that represents a pact between the consumer and provider of a service.

PactConflict

Struct that defined an interaction conflict

Provider

Struct that defines a provider of a pact.

Request

Struct that defines the request.

Response

Struct that defines the response.

Enums

DetectedContentType

Enumeration of general content types

DifferenceType

Enumeration of the types of differences between requests and responses

OptionalBody

Enum that defines the four main states that a body of a request and response can be in a pact file.

PactSpecification

Enum defining the pact specification versions supported by the library

Constants

VERSION

Version of the library

Traits

HttpPart

Trait to specify an HTTP part of a message. It encapsulates the shared parts of a request and response.

Functions

build_query_string

Converts a query string map into a query string

parse_query_string

Parses a query string into an optional map. The query parameter name will be mapped to a list of values. Where the query parameter is repeated, the order of the values will be preserved.