requests

package
v0.0.0-...-94aba75 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeJsonLD = jsonld.ContentType

	// ContentTypeJsonActivity This specification registers the application/activity+json MIME Media Type
	// specifically for identifying documents conforming to the Activity Streams 2.0 format.
	//
	// https://www.w3.org/TR/activitystreams-core/#media-type
	ContentTypeJsonActivity = `application/activity+json`

	ContentTypeJson = "application/json;q=0.9"
)

Variables

View Source
var TimeNow = func() time.Time { return time.Now().Truncate(time.Millisecond).UTC() }

Functions

func ActivityPubBuilder

func ActivityPubBuilder(reqUrl, contentType string, body io.Reader) *requests.Builder

func FetchBuilder

func FetchBuilder(reqUrl, method string) *requests.Builder

Types

This section is empty.

Jump to

Keyboard shortcuts

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