Skip to main content
Module

x/feoblog_client/mod.ts>protobuf.Server

a JavaScript client for feoblog written for Deno
Latest
class protobuf.Server
extends Message<Server>
import { protobuf } from "https://deno.land/x/feoblog_client@v0.7.0/mod.ts";
const { Server } = protobuf;

Information about where a user's posts may be found. This lets content creators' clients know where to send posts when they're uploaded. This also lets consumers' clients know where they can find the creator's content.

Constructors

new
Server(data?: PartialMessage<Server>)

Properties

url: string

A URL to a FeoBlog server. Ex: "https://feo.example.com" "https://feo.example.com/" "https://feo.example.com:8080" "https://feo.example.com:8080/"

Note 1: Subpaths are currently not supported. Ex: "https://feo.example.com/some/subpath/"

Note 2: While the signature authentication allows serving/sending signed protobuf Items securely without HTTPS, since the main client is currently implemented as in-browser JavaScript, it is recommended that servers use only HTTPS to avoid JavaScript injection in the client. So, you should probably prefer https for the REST endpoints too. Plus, HTTP/2 requires HTTPS, and you'll get better performance for fetching many small Items w/ HTTP/2.

Static Properties

readonly
fields: FieldList
readonly
runtime
readonly
typeName: string

Static Methods

equals(a: Server | PlainMessage<Server> | undefined, b: Server | PlainMessage<Server> | undefined): boolean
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Server
fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Server
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Server