Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-httpclient

Named HTTP clients for Pudu: a client factory, delegating handlers, pooled keep-alive connections, handler lifetimes, logging, and resilience

0.1.1Apache-2.01

InstallClose

Messages.pudu

Pudu102 lines4.6 KB

GitHub ↗
1/** @Constants.Messages.Module — every sentence the package reports */2module PuduLangHttpClient.Constants.Messages34/// A request that cannot be sent as written; `<1>` is why.5export const INVALID_REQUEST: Str = "The request is invalid: <1>"67/// A host name that resolved to no address; `<1>` is what the resolver said.8export const NAME_RESOLUTION: Str = "The host name could not be resolved: <1>"910/// A connection that could not be opened or broke; `<1>` is why.11export const CONNECTION: Str = "The connection failed: <1>"1213/// A secured connection that could not be established; `<1>` is why.14export const SECURE_CONNECTION: Str = "The secured connection failed: <1>"1516/// A proxy that refused to open a tunnel; `<1>` is why.17export const PROXY_TUNNEL: Str = "The proxy did not open a tunnel: <1>"1819/// A response that broke the protocol; `<1>` is how.20export const PROTOCOL: Str = "The response broke the protocol: <1>"2122/// A connection that closed before the response was complete.23export const RESPONSE_ENDED: Str = "The connection closed before the response was complete."2425/// A response body over the buffer limit; `<1>` is the limit in bytes.26export const CONTENT_TOO_LARGE: Str = "The response body is larger than <1> bytes."2728/// A response head over the limit; `<1>` is the limit in bytes.29export const HEADERS_TOO_LARGE: Str = "The response headers are larger than <1> bytes."3031/// A template slot with no argument; `<1>` is the slot's name.32export const UNFILLED_SLOT: Str = "the template slot '<1>' has no argument"3334/// A redirect chain over the limit; `<1>` is the limit.35export const TOO_MANY_REDIRECTS: Str = "The request was redirected more than <1> times."3637/// A destination the address policy refuses; `<1>` is why.38export const NOT_PERMITTED: Str = "The destination is not permitted: <1>"3940/// A protocol version the transport cannot speak under the request's policy; `<1>` is the version.41export const VERSION_UNSUPPORTED: Str = "The request asks for <1>, which the transport does not speak."4243/// A request whose deadline passed; `<1>` is the timeout in milliseconds.44export const TIMED_OUT: Str = "The request timed out after <1> ms."4546/// A cancelled request; `<1>` is the reason.47export const CANCELLED: Str = "The request was cancelled: <1>"4849/// A response whose status is not a success; `<1>` is the code and `<2>` the reason phrase.50export const UNSUCCESSFUL: Str = "The response status <1> (<2>) does not indicate success."5152/// A body that cannot be read as asked; `<1>` is why.53export const UNREADABLE: Str = "The body could not be read: <1>"5455/// A request a resilience strategy refused; `<1>` is the strategy's description.56export const REJECTED: Str = "The request was rejected: <1>"5758/// A handler that stopped its thread; `<1>` is what it said.59export const CRASHED: Str = "A handler stopped its thread: <1>"6061/// A body that is not UTF-8 text.62export const NOT_TEXT: Str = "the body is not UTF-8 text"6364/// A body that is not JSON; `<1>` is the parser's explanation.65export const NOT_JSON: Str = "the body is not JSON: <1>"6667/// JSON that does not decode into the requested type; `<1>` is the decoder's explanation.68export const NOT_DECODABLE: Str = "the body does not decode: <1>"6970/// A relative address without a base address; `<1>` is the address.71export const RELATIVE_WITHOUT_BASE: Str = "'<1>' is relative and the client has no base address"7273/// An address that is not an absolute http or https address; `<1>` is the address.74export const NOT_HTTP: Str = "'<1>' is not an absolute http or https address"7576/// A header that cannot be written; `<1>` is its name.77export const BAD_HEADER: Str = "the header '<1>' contains a line break or an invalid name"7879/// A status line that does not parse; `<1>` is the line.80export const BAD_STATUS_LINE: Str = "the status line is not a version, code, and reason: <1>"8182/// A head that does not parse; `<1>` is the parser's explanation.83export const BAD_HEAD: Str = "the response head does not parse: <1>"8485/// A chunked body that does not parse; `<1>` is where.86export const BAD_CHUNK: Str = "the chunked body is malformed: <1>"8788/// A compressed body that does not decompress; `<1>` is why.89export const BAD_ENCODING: Str = "the compressed body does not decompress: <1>"9091/// A connection that stopped answering before its deadline; `<1>` is the phase.92export const STALLED: Str = "the connection timed out while <1>"9394/// A builder or option that cannot be followed; `<1>` is the client name and `<2>` the problem.95export const CLIENT_PROBLEM: Str = "client '<1>': <2>"9697/// A factory that cannot be built; `<1>` is every problem, separated.98export const FACTORY_INVALID: Str = "The client factory is invalid: <1>"99100/// The separator between problems in one sentence.101export const PROBLEM_SEPARATOR: Str = "; "102