textproto

package
v0.0.0-...-375d9ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:46 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalMIMEHeaderKey

func CanonicalMIMEHeaderKey(s string) string

func ConnClose

func ConnClose(c *textproto.Conn) error

func ConnCmd

func ConnCmd(c *textproto.Conn, format string, args ...interface{}) (uint, error)

func Dial

func Dial(network, addr string) (*textproto.Conn, error)

func ErrorError

func ErrorError(e *textproto.Error) string

func MIMEHeaderGet

func MIMEHeaderGet(h textproto.MIMEHeader, key string) string

func MIMEHeaderValues

func MIMEHeaderValues(h textproto.MIMEHeader, key string) []string

func NewConn

func NewConn(conn io.ReadWriteCloser) *textproto.Conn

func NewReader

func NewReader(r *bufio.Reader) *textproto.Reader

func NewWriter

func NewWriter(w *bufio.Writer) *textproto.Writer

func PipelineNext

func PipelineNext(p *textproto.Pipeline) uint

func ProtocolErrorError

func ProtocolErrorError(p textproto.ProtocolError) string

func ReaderDotReader

func ReaderDotReader(r *textproto.Reader) io.Reader

func ReaderReadCodeLine

func ReaderReadCodeLine(r *textproto.Reader, expectCode int) (int, string, error)

func ReaderReadContinuedLine

func ReaderReadContinuedLine(r *textproto.Reader) (string, error)

func ReaderReadContinuedLineBytes

func ReaderReadContinuedLineBytes(r *textproto.Reader) ([]byte, error)

func ReaderReadDotBytes

func ReaderReadDotBytes(r *textproto.Reader) ([]byte, error)

func ReaderReadDotLines

func ReaderReadDotLines(r *textproto.Reader) ([]string, error)

func ReaderReadLine

func ReaderReadLine(r *textproto.Reader) (string, error)

func ReaderReadLineBytes

func ReaderReadLineBytes(r *textproto.Reader) ([]byte, error)

func ReaderReadMIMEHeader

func ReaderReadMIMEHeader(r *textproto.Reader) (textproto.MIMEHeader, error)

func ReaderReadResponse

func ReaderReadResponse(r *textproto.Reader, expectCode int) (int, string, error)

func TrimBytes

func TrimBytes(b []byte) []byte

func TrimString

func TrimString(s string) string

func WriterDotWriter

func WriterDotWriter(w *textproto.Writer) io.WriteCloser

func WriterPrintfLine

func WriterPrintfLine(w *textproto.Writer, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL