comment
This commit is contained in:
parent
056aee6d2f
commit
8217b03c69
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ use url::Url;
|
||||||
|
|
||||||
/// Generates HTTP response to serve the object for fetching from other instances.
|
/// Generates HTTP response to serve the object for fetching from other instances.
|
||||||
///
|
///
|
||||||
|
/// If possible use [Object.http_response]
|
||||||
|
/// which also handles redirects for remote objects and deletions.
|
||||||
|
///
|
||||||
/// `federation_context` is the value of `@context`.
|
/// `federation_context` is the value of `@context`.
|
||||||
pub fn create_http_response<T: Serialize>(
|
pub fn create_http_response<T: Serialize>(
|
||||||
data: T,
|
data: T,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue