modifier

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package modifier exposes a request modifier for generating bodies from the querystring params

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KeysToExtract []string `json:"keys_to_extract"`
	Template      string   `json:"template"`
	Method        string   `json:"method"`
	ContentType   string   `json:"content_type"`
}

type Query2BodyModifier

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

func FromJSON

func FromJSON(b []byte) (*Query2BodyModifier, error)

func (*Query2BodyModifier) ModifyRequest

func (m *Query2BodyModifier) ModifyRequest(req *http.Request) error

Jump to

Keyboard shortcuts

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