Discover Packages
github.com/jo-fr/activityhub/backend
modules
activitypub
internal
keys
httprequest
package
Version:
v0.0.0-...-37004a0
Opens a new window with list of versions in this module.
Published: Feb 6, 2024
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
New creates a new request with the given method, url and body.
Do sends the request and returns the response.
func (*Request) GetBody ¶
GetBody reads the request body and returns it as a bytes.Buffer. The request body is then reset to its original state.
SetHeader sets the header with the given key and value.
Sign adds required headers and signs the request with the given private key.
In order for this function to work properly make sure that the request URL and body are set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.