Provides fluent builders for HTTP forward and error actions in the MockServer Go client.
// Source: https://github.com/mock-server/mockserver-monorepo | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package mockserver
// HttpForward represents an HTTP forward action for MockServer.
type HttpForward struct {
Host string `json:"host"`
Port int `json:"port,omitempty"`
Scheme string `json:"scheme,omitempty"`
Delay *Delay `json:"delay,omitempty"`
// Primary marks this as the primary action when multiple are present.
Primary *bool `json:"primary,omitempty"`
}
// HttpOverrideForwardedRequest forwards the matched request to an overridden
// target while shaping the caller's response. The server serialization is a
// oneOf of two wire forms, both represented he
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key