_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c19600 | train | // HTTP router returns a router instance that work only on HTTP requests | {
"resource": ""
} | ||
c19601 | train | // HTTPS router returns a router instance that work only on HTTPS requests | {
"resource": ""
} | ||
c19602 | train | // Si formats a number in a short si format | {
"resource": ""
} | ||
c19603 | train | // HealthHandler serves info about memory usage | {
"resource": ""
} | ||
c19604 | train | // AddServiceServer registers server to a service in the infrastructure | {
"resource": ""
} | ||
c19605 | train | // Register the middlewares | {
"resource": ""
} | ||
c19606 | train | // SetCookieExpire allows you set cookie expire time | {
"resource": ""
} | ||
c19607 | train | // SetSanitizerPolicy updates app's sanitizer policy to a new one, if newPolicy is not nil | {
"resource": ""
} | ||
c19608 | train | // Shutdown gracefully shuts down application servers | {
"resource": ""
} | ||
c19609 | train | // New creates an unwrapper, optimized for Akamai network | {
"resource": ""
} | ||
c19610 | train | // toLower returns a copy of the string s with all Unicode letters mapped to their lower case. | {
"resource": ""
} | ||
c19611 | train | // Map returns a copy of the string s with all its characters modified
// according to the mapping function. If mapping returns a negative value, the character is
// dropped from the string with no replacement. | {
"resource": ""
} | ||
c19612 | train | // RegisterService in the infrastructure | {
"resource": ""
} | ||
c19613 | train | // MergeService in the infrastructure | {
"resource": ""
} | ||
c19614 | train | // SetEnv sets gramework's environment | {
"resource": ""
} | ||
c19615 | train | // ListenAndServeAutoTLS serves TLS requests | {
"resource": ""
} | ||
c19616 | train | // Column initialize a column builder
// that requires you to choose a type
// before you can Build the statement | {
"resource": ""
} | ||
c19617 | train | // appendColumn to the table column list | {
"resource": ""
} | ||
c19618 | train | // New API client instance | {
"resource": ""
} | ||
c19619 | train | // Equals returns true if params p equals to params p1 | {
"resource": ""
} | ||
c19620 | train | // String returns params p as a MCF | {
"resource": ""
} | ||
c19621 | train | // New returns new scrypt provider | {
"resource": ""
} | ||
c19622 | train | // HashString returns scrypt hash of plaintext | {
"resource": ""
} | ||
c19623 | train | // Encode automatically determines accepted formats
// and choose preferred one | {
"resource": ""
} | ||
c19624 | train | // HTML sets HTML content type | {
"resource": ""
} | ||
c19625 | train | // CORS enables CORS in the current context | {
"resource": ""
} | ||
c19626 | train | // JSON serializes and writes a json-formatted response to user | {
"resource": ""
} | ||
c19627 | train | // Err500 sets Internal Server Error status | {
"resource": ""
} | ||
c19628 | train | // JSONError sets Internal Server Error status,
// serializes and writes a json-formatted response to user | {
"resource": ""
} | ||
c19629 | train | // PasswordValid checks if provided hash | {
"resource": ""
} | ||
c19630 | train | // OptAppName sets app.name and app.serverBase.Name | {
"resource": ""
} | ||
c19631 | train | // OptUseCustomLogger allows use custom preconfigured Apex logger.
// For exmaple with custom Handler. | {
"resource": ""
} | ||
c19632 | train | // OptUseServer sets fasthttp.Server instance to use | {
"resource": ""
} | ||
c19633 | train | // OptMaxRequestBodySize sets new MaxRequestBodySize in the server used at the execution time.
// All OptUseServer will overwrite this setting 'case OptUseServer replaces the whole server instance
// with a new one. | {
"resource": ""
} | ||
c19634 | train | // OptKeepHijackedConns sets new KeepHijackedConns in the server used at the execution time.
// All OptUseServer will overwrite this setting 'case OptUseServer replaces the whole server instance
// with a new one. | {
"resource": ""
} | ||
c19635 | train | // Integer sets INTEGER type to the column | {
"resource": ""
} | ||
c19636 | train | // newRouter returns a new initialized Router.
// Path auto-correction, including trailing slashes, is enabled by default. | {
"resource": ""
} | ||
c19637 | train | // Recv used to recover after panic. Called if PanicHandler was set | {
"resource": ""
} | ||
c19638 | train | // ContentType returns Content-Type header for current request | {
"resource": ""
} | ||
c19639 | train | // RouteArg returns an argument value as a string or empty string | {
"resource": ""
} | ||
c19640 | train | // ToXML encodes xml-encoded value to client | {
"resource": ""
} | ||
c19641 | train | // RouteArgErr returns an argument value as a string or empty string
// and ErrArgNotFound if argument was not found | {
"resource": ""
} | ||
c19642 | train | // ToTLS redirects user to HTTPS scheme | {
"resource": ""
} | ||
c19643 | train | // ToJSON serializes v and returns the result | {
"resource": ""
} | ||
c19644 | train | // UnJSON deserializes JSON request body to given variable pointer | {
"resource": ""
} | ||
c19645 | train | // NewCacheOptions returns a cache options with default settings. | {
"resource": ""
} | ||
c19646 | train | // WSHandler returns gramework handler | {
"resource": ""
} | ||
c19647 | train | // FindCaseInsensitivePath makes a case-insensitive lookup of the given path
// and tries to find a handler.
// It can optionally also fix trailing slashes.
// It returns the case-corrected path and a bool indicating whether the lookup
// was successful. | {
"resource": ""
} | ||
c19648 | train | // Table says that we are CREATE-ing
// a TABLE with given name | {
"resource": ""
} | ||
c19649 | train | // Domain returns a domain router | {
"resource": ""
} | ||
c19650 | train | // ServeDir from a given path | {
"resource": ""
} | ||
c19651 | train | // ServeDirCustom gives you ability to serve a dir with custom settings | {
"resource": ""
} | ||
c19652 | train | // ServeDirNoCache gives you ability to serve a dir without caching | {
"resource": ""
} | ||
c19653 | train | // ServeDirNoCacheCustom gives you ability to serve a dir with custom settings without caching | {
"resource": ""
} | ||
c19654 | train | // AddFlag adds a Flag to flag queue that will be
// parsed if flags wasn't parsed yet | {
"resource": ""
} | ||
c19655 | train | // RegFlags registers current flag queue in flag parser | {
"resource": ""
} | ||
c19656 | train | // GetStringFlag return command line app flag value by name and false if not exists | {
"resource": ""
} | ||
c19657 | train | // Use the middleware before request processing | {
"resource": ""
} | ||
c19658 | train | // UsePre registers middleware before any other middleware. Use only for metrics or access control! | {
"resource": ""
} | ||
c19659 | train | // UseAfterRequest the middleware after request processing | {
"resource": ""
} | ||
c19660 | train | // LogHeaders logs all request headers for debug | {
"resource": ""
} | ||
c19661 | train | // Proxy request to given url | {
"resource": ""
} | ||
c19662 | train | // Register both ping and healthcheck endpoints | {
"resource": ""
} | ||
c19663 | train | // RegisterHealthcheck registers healthcheck endpoint | {
"resource": ""
} | ||
c19664 | train | // New initializes an empty infrastructure | {
"resource": ""
} | ||
c19665 | train | // IsPortInRange checks if port is in whitelist. | {
"resource": ""
} | ||
c19666 | train | // Insert statement builder generates
// an insert statement using `?` placeholders
// for values | {
"resource": ""
} | ||
c19667 | train | // PreparedInsert statement builder generates
// the insert SQL statement with values built
// in the statement without using placeholders | {
"resource": ""
} | ||
c19668 | train | // Columns defines column list | {
"resource": ""
} | ||
c19669 | train | // Values appends column values to the query | {
"resource": ""
} | ||
c19670 | train | // Build the query | {
"resource": ""
} | ||
c19671 | train | // Handler serves standalone graphiql HTML. | {
"resource": ""
} | ||
c19672 | train | // GetCookieDomain returns previously configured cookie domain and if cookie domain
// was configured at all | {
"resource": ""
} | ||
c19673 | train | // Set a cookie with given key to the value | {
"resource": ""
} | ||
c19674 | train | // Get a cookie by given key | {
"resource": ""
} | ||
c19675 | train | // Exists reports if the given key exists for current request | {
"resource": ""
} | ||
c19676 | train | // HTTP returns SubRouter for http requests with given r.prefix | {
"resource": ""
} | ||
c19677 | train | // HTTPS returns SubRouter for https requests with given r.prefix | {
"resource": ""
} | ||
c19678 | train | // DecodeGQL parses GraphQL request and returns data from it | {
"resource": ""
} | ||
c19679 | train | // NewRequest tells the firewall, that a new request happened.
// True is returned, if this request should be blocked,
// because the IP is on the block list.
// The remote address is always returned for logging purpose. | {
"resource": ""
} | ||
c19680 | train | // isBlocked checks if the remote address is blocked | {
"resource": ""
} | ||
c19681 | train | // Setup registers middleware in the provided app | {
"resource": ""
} | ||
c19682 | train | // Encode encodes given providerName, params, salt and key into Modular Crypt Format. | {
"resource": ""
} | ||
c19683 | train | // encodeBase64 encodes the input bytes into standard base64. | {
"resource": ""
} | ||
c19684 | train | // Decode given MCF if it contains information about expected pw type | {
"resource": ""
} | ||
c19685 | train | // GET sends a request with GET method | {
"resource": ""
} | ||
c19686 | train | // GetJSON sends a GET request and deserializes response in a provided variable | {
"resource": ""
} | ||
c19687 | train | // NewProvider returns a Server that will serve RPC over this
// application's Stdin and Stdout. This method is intended to be run by the
// plugin application. | {
"resource": ""
} | ||
c19688 | train | // Close closes the connection with the client. If the client is a plugin
// process, the process will be stopped. Further communication using this
// Server will fail. | {
"resource": ""
} | ||
c19689 | train | // ServeCodec starts the Server's RPC server, serving via the encoding returned
// by f. This call will block until the client hangs up. | {
"resource": ""
} | ||
c19690 | train | // StartProvider start a provider-style plugin application at the given path and
// args, and returns an RPC client that communicates with the plugin using gob
// encoding over the plugin's Stdin and Stdout. The writer passed to output
// will receive output from the plugin's stderr. Closing the RPC client
// returne... | {
"resource": ""
} | ||
c19691 | train | // StartProviderCodec starts a provider-style plugin application at the given
// path and args, and returns an RPC client that communicates with the plugin
// using the ClientCodec returned by f over the plugin's Stdin and Stdout. The
// writer passed to output will receive output from the plugin's stderr.
// Closing t... | {
"resource": ""
} | ||
c19692 | train | // StartConsumer starts a consumer-style plugin application with the given path
// and args, writing its stderr to output. The plugin consumes an API this
// application provides. The function returns the Server for this host
// application, which should be used to register APIs for the plugin to consume. | {
"resource": ""
} | ||
c19693 | train | // NewConsumer returns an rpc.Client that will consume an API from the host
// process over this application's Stdin and Stdout using gob encoding. | {
"resource": ""
} | ||
c19694 | train | // NewConsumerCodec returns an rpc.Client that will consume an API from the host
// process over this application's Stdin and Stdout using the ClientCodec
// returned by f. | {
"resource": ""
} | ||
c19695 | train | // start runs the plugin and returns an ioPipe that can be used to control the
// plugin. | {
"resource": ""
} | ||
c19696 | train | // Close closes the pipe's WriteCloser, ReadClosers, and process. | {
"resource": ""
} | ||
c19697 | train | // closeProc sends an interrupt signal to the pipe's process, and if it doesn't
// respond in one second, kills the process. | {
"resource": ""
} | ||
c19698 | train | // Close closes both the ReadCloser and the WriteCloser, returning the last
// error from either. | {
"resource": ""
} | ||
c19699 | train | // Name returns the field name, given the receiver and the unsafe import, if needed. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.