Parse a Uri from a string.

Synopsis

Declared in <folly/Uri.h>

static
Expected<Uri, UriFormatError>
tryFromString(StringPiece str) noexcept;

Description

On failure, returns UriFormatError.

Return Value

The parsed Uri, or a UriFormatError on failure.

Parameters

Name

Description

str

The string to parse.

Created with MrDocs