gentleman.v2: gopkg.in/h2non/gentleman.v2/plugins/body Index | Files

package body

import "gopkg.in/h2non/gentleman.v2/plugins/body"

Index

Package Files

body.go

func JSON Uses

func JSON(data interface{}) p.Plugin

JSON defines a JSON body in the outgoing request. Supports strings, array of bytes or buffer.

func Reader Uses

func Reader(body io.Reader) p.Plugin

Reader defines a io.Reader stream as request body. Content-Type header won't be defined automatically, you have to declare it manually.

func String Uses

func String(data string) p.Plugin

String defines the HTTP request body based on the given string.

func XML Uses

func XML(data interface{}) p.Plugin

XML defines a XML body in the outgoing request. Supports strings, array of bytes or buffer.

Package body imports 9 packages (graph) and is imported by 8 packages. Updated 2020-02-19. Refresh now. Tools for package owners.