http201

package module
v0.0.0-...-b556aaf Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 4 Imported by: 0

README

go-http201

Package http201 provides tools for creating HTTP 201 responses, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-http201

GoDoc

Import

To import package http201 use import code like the following:

import "github.com/reiver/go-http201"

Installation

To install package http201 do the following:

GOPROXY=direct go get github.com/reiver/go-http201

Author

Package http201 was written by Charles Iliya Krempeaux

Documentation

Index

Constants

View Source
const DefaultStatusText string = "Created"
View Source
const (
	ErrNilHTTPResponseWriter = erorr.Error("http201: nil http-response-writer")
)
View Source
const (
	StatusCode = http.StatusCreated
)

Variables

This section is empty.

Functions

func Created

func Created(responseWriter http.ResponseWriter, request *http.Request)

func Serve

func Serve(responseWriter http.ResponseWriter) error

func ServeBytes

func ServeBytes(responseWriter http.ResponseWriter, bytes []byte) error

func ServeLocation

func ServeLocation(responseWriter http.ResponseWriter, url string) error

func ServeString

func ServeString(responseWriter http.ResponseWriter, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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