_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c13100 | // WriteTo writes this entity's header and body to w. | |
c13101 | // NewReader creates a new mail reader. | |
c13102 | // CreateReader reads a mail header from r and returns a new mail reader.
//
// If the message uses an unknown transfer encoding or charset, CreateReader
// returns an error that verifies message.IsUnknownCharset, but also returns a
// Reader that can be used. | |
c13103 | // NextPart returns the next mail part. If there is no more part, io.EOF is
// returned as error.
//
// The returned Part.Body must be read completely before the next call to
// NextPart, otherwise it will be discarded.
//
// If the part uses an unknown transfer encoding or charset, NextPart returns an
// error that ve... | |
c13104 | // Close finishes the reader. | |
c13105 | // Reader returns an io.Reader that converts the provided charset to UTF-8. | |
c13106 | // charsetReader calls CharsetReader if non-nil. | |
c13107 | // decodeHeader decodes an internationalized header field. If it fails, it
// returns the input string and the error. | |
c13108 | // createWriter creates a new Writer writing to w with the provided header.
// Nothing is written to w when it is called. header is modified in-place. | |
c13109 | // CreateWriter creates a new message writer to w. If header contains an
// encoding, data written to the Writer will automatically be encoded with it.
// The charset needs to be utf-8 or us-ascii. | |
c13110 | // CreatePart returns a Writer to a new part in this multipart entity. If this
// entity is not multipart, it fails. The body of the part should be written to
// the returned io.WriteCloser. | |
c13111 | // Add adds the key, value pair to the header. It prepends to any existing
// fields associated with key. | |
c13112 | // Get gets the first value associated with the given key. If there are no
// values associated with the key, Get returns "". | |
c13113 | // Set sets the header fields associated with key to the single field value.
// It replaces any existing values associated with key. | |
c13114 | // Has checks whether the header has a field with the specified key. | |
c13115 | // FieldsByKey iterates over all fields having the specified key.
//
// The header may not be mutated while iterating, except using HeaderFields.Del. | |
c13116 | // trim returns s with leading and trailing spaces and tabs removed.
// It does not assume Unicode or UTF-8. | |
c13117 | // skipSpace skips R over all spaces and returns the number of bytes skipped. | |
c13118 | // Strip newlines and spaces around newlines. | |
c13119 | // formatHeaderField formats a header field, ensuring each line is no longer
// than 76 characters. It tries to fold lines at whitespace characters if
// possible. If the header contains a word longer than this limit, it will be
// split. | |
c13120 | // WriteHeader writes a MIME header to w. | |
c13121 | // CreateWriter writes a mail header to w and creates a new Writer. | |
c13122 | // CreateInline creates a InlineWriter. One or more parts representing the same
// text in different formats can be written to a InlineWriter. | |
c13123 | // CreateSingleInline creates a new single text part with the provided header.
// The body of the part should be written to the returned io.WriteCloser. Only
// one single text part should be written, use CreateInline if you want multiple
// text parts. | |
c13124 | // CreateAttachment creates a new attachment with the provided header. The body
// of the part should be written to the returned io.WriteCloser. | |
c13125 | // CreatePart creates a new text part with the provided header. The body of the
// part should be written to the returned io.WriteCloser. | |
c13126 | // GetEntry returns a pointer to the "Entry" found with the given "key"
// if nothing found then it returns nil, so be careful with that,
// it's not supposed to be used by end-developers. | |
c13127 | // GetStringDefault returns the entry's value as string, based on its key.
// If not found returns "def". | |
c13128 | // Serialize returns the byte representation of the current Store. | |
c13129 | // StartFasthttp starts the session for the particular request. | |
c13130 | // ShiftExpirationFasthttp move the expire date of a session to a new date
// by using session default timeout configuration. | |
c13131 | // UpdateExpiration change expire date of a session to a new date
// by using timeout value passed by `expires` receiver. | |
c13132 | // DestroyFasthttp remove the session data and remove the associated cookie. | |
c13133 | // GetInt same as `Get` but returns its int representation,
// if key doesn't exist then it returns -1 and a non-nil error. | |
c13134 | // GetFloat32 same as `Get` but returns its float32 representation,
// if key doesn't exist then it returns -1 and a non-nil error. | |
c13135 | // GetCookieFasthttp returns cookie's value by it's name
// returns empty string if nothing was found. | |
c13136 | // AddCookieFasthttp adds a cookie. | |
c13137 | // OnUpdateExpiration will re-set the database's session's entry ttl. | |
c13138 | // CreateTable creates an empty Table using defaults for style. | |
c13139 | // AddRow adds the supplied items as cells in one row of the table. | |
c13140 | // AddHeaders supplies column headers for the table. | |
c13141 | // SetAlign changes the alignment for elements in a column of the table;
// alignments are stored with each cell, so cells added after a call to
// SetAlign will not pick up the change. Columns are numbered from 1. | |
c13142 | // SetHTMLStyleTitle lets an HTML output mode be chosen; we should rework this
// into a more generic and extensible API as we clean up termtables. | |
c13143 | // renderTerminal returns a string representation of a fully rendered table,
// drawn out for display, with embedded newlines. | |
c13144 | // Render returns a string representing this separator, with all border
// crossings appropriately chosen. | |
c13145 | // GetEnvWindowSize returns the window Size, as determined by process
// environment; if either LINES or COLUMNS is present, and whichever is
// present is also numeric, the Size will be non-nil. If Size is nil,
// there's insufficient data in environ. If one entry is 0, that means
// that the environment does not in... | |
c13146 | // Render returns the string representation of a horizontal rule line in the
// table. | |
c13147 | // CreateRow returns a Row where the cells are created as needed to hold each
// item given; each item can be a Cell or content to go into a Cell created
// to hold it. | |
c13148 | // AddCell adds one item to a row as a new cell, where the item is either a
// Cell or content to be put into a cell. | |
c13149 | // HTML returns an HTML representations of the contents of one row of a table. | |
c13150 | // RenderHTML returns a string representation of a the table, suitable for
// inclusion as HTML elsewhere. Primary use-case controlling layout style
// is for inclusion into Markdown documents, documenting normal table use.
// Thus we leave the padding in place to have columns align when viewed as
// plain text and re... | |
c13151 | // Format the raw value as a string depending on the type | |
c13152 | // setUtfBoxStyle changes the border characters to be suitable for use when
// the output stream can render UTF-8 characters. | |
c13153 | // fillStyleRules populates members of the TableStyle box-drawing specification
// with BorderI as the default. | |
c13154 | // buildReplaceContent creates a function closure, with minimal bound lexical
// state, which replaces content | |
c13155 | // GetTerminalWindowSize returns the width and height of a terminal in Windows. | |
c13156 | // Get gets a Buffer from the BufferPool, or creates a new one if none are
// available in the pool. | |
c13157 | // New constructs a new Render instance with the supplied options. | |
c13158 | // TemplateLookup is a wrapper around template.Lookup and returns
// the template with the given name that is associated with t, or nil
// if there is no such template. | |
c13159 | // Render is the generic function called by XML, JSON, Data, HTML, and can be called by custom implementations. | |
c13160 | // Data writes out the raw bytes as binary data. | |
c13161 | // HTML builds up the response from the specified template and bindings. | |
c13162 | // JSON marshals the given interface object and writes the JSON response. | |
c13163 | // JSONP marshals the given interface object and writes the JSON response. | |
c13164 | // XML marshals the given interface object and writes the XML response. | |
c13165 | // Write outputs the header content. | |
c13166 | // Render a data response. | |
c13167 | // Render a HTML response. | |
c13168 | // Render a JSON response. | |
c13169 | // Render a JSONP response. | |
c13170 | // Render a text response. | |
c13171 | // Render an XML response. | |
c13172 | // Dispatch triggers the middleware chains and performs the HTTP request. | |
c13173 | // Use registers a new plugin to the middleware stack. | |
c13174 | // UseHandler registers a phase specific plugin handler in the middleware stack. | |
c13175 | // Flush flushes the plugins stack. | |
c13176 | // GetStack gets the current middleware plugins stack. | |
c13177 | // Clone creates a new Middleware instance based on the current one. | |
c13178 | // URL parses and defines a new URL in the outgoing request | |
c13179 | // Path defines a new URL path in the outgoing request | |
c13180 | // Param replaces one or multiple path param expressions by the given value | |
c13181 | // String defines the HTTP request body based on the given string. | |
c13182 | // JSON defines a JSON body in the outgoing request.
// Supports strings, array of bytes or buffer. | |
c13183 | // Reader defines a io.Reader stream as request body.
// Content-Type header won't be defined automatically, you have to declare it manually. | |
c13184 | // If creates a new multiplexer that will be executed if all the mux matchers passes. | |
c13185 | // Or creates a new multiplexer that will be executed if at least one mux matcher passes. | |
c13186 | // Match creates a new multiplexer based on a given matcher function. | |
c13187 | // Path returns a new multiplexer who matches an HTTP request
// path based on the given regexp pattern. | |
c13188 | // Type returns a new multiplexer who matches an HTTP response
// Content-Type header field based on the given type string. | |
c13189 | // Status returns a new multiplexer who matches an HTTP response
// status code based on the given status codes. | |
c13190 | // StatusRange returns a new multiplexer who matches an HTTP response
// status code based on the given status range, including both numbers. | |
c13191 | // Error returns a new multiplexer who matches errors originated
// in the client or in the server. | |
c13192 | // ServerError returns a new multiplexer who matches response errors by the server. | |
c13193 | // New creates a new multiplexer with default settings. | |
c13194 | // Match matches the give Context againts a list of matchers and
// returns `true` if all the matchers passed. | |
c13195 | // AddMatcher adds a new matcher function in the current mumultiplexer matchers stack. | |
c13196 | // Handler returns the function handler to match an incoming HTTP transacion
// and trigger the equivalent middleware phase. | |
c13197 | // Use registers a new plugin in the middleware stack. | |
c13198 | // UseHandler registers a new error phase middleware handler. | |
c13199 | // TLS defines the maximum amount of time waiting for a TLS handshake |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.