send

package
v0.0.0-...-85f0486 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSS

func CSS(ctx web.Context, body string) error

Sends the body with the content type set to text/css

func CSV

func CSV(ctx web.Context, body string) error

Sends the body with the content type set to text/csv

func HTML

func HTML(ctx web.Context, body string) error

Sends the body with the content type set to text/html

func JS

func JS(ctx web.Context, body string) error

Sends the body with the content type set to text/javascript

func JSON

func JSON(ctx web.Context, object any) error

Encodes the object in JSON format and sends it with the content type set to application/json

func Text

func Text(ctx web.Context, body string) error

Sends the body with the content type set to text/plain

func XML

func XML(ctx web.Context, body string) error

Sends the body with the content type set to text/xml

Types

This section is empty.

Jump to

Keyboard shortcuts

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