Lines Matching full:if
47 if err := writer.AddTransform(TransformZlib); err != nil {
54 if err := writer.AddTransform(TransformZlib); err != nil {
60 if err := writer.AddTransform(TransformNone); err != nil {
68 if _, err := writer.Write([]byte(payload1)); err != nil {
71 if err := writer.Flush(context.Background()); err != nil {
74 if _, err := writer.Write([]byte(payload2)); err != nil {
77 if err := writer.Flush(context.Background()); err != nil {
84 if err := reader.ReadFrame(context.Background()); err != nil {
87 if err := reader.ReadFrame(context.Background()); err != nil {
91 if err != nil {
94 if err := reader.ReadFrame(context.Background()); err != nil && err != io.EOF {
97 if string(read) != payload1+payload2 {
104 if prot := reader.Protocol(); prot != protoID {
111 if reader.clientType != clientHeaders {
119 if len(headers) != 2 || headers[key1] != value1 || headers[key2] != value2 {
144 if wrapped != orig {
152 if _, err := io.Copy(writer, strings.NewReader(content)); err != nil {
155 if err := writer.Flush(context.Background()); err != nil {
162 if len(content) == 0 {
169 if err := writeContent(writer, content); err != nil {
172 if err := writeContent(writer, content); err != nil {
179 if err != nil {
182 if read == 0 || read > len(content) {
193 if !reader.needReadFrame() {
198 if err := quick.Check(f, nil); err != nil {
206 if _, err := io.Copy(writer, strings.NewReader(content)); err != nil {
209 if err := writer.Flush(context.Background()); err != nil {
217 if len(content) == 0 {
224 if err := writeContent(writer, content); err != nil {
229 if err != nil {
232 if !reader.needReadFrame() {
237 if err := quick.Check(readFully, nil); err != nil {
243 if len(content) < 1 {
250 if err := writeContent(writer, content); err != nil {
256 if err != nil {
259 if reader.needReadFrame() {
264 if err := quick.Check(readPartially, nil); err != nil {
292 if err != nil {
296 if !ok {
299 if actual := ht.Protocol(); actual != expected {
304 if actual := ht.Protocol(); actual != expected {
321 if _, err := io.Copy(writer, strings.NewReader(content)); err != nil {
324 if err := writer.Flush(context.Background()); err != nil {
330 if err != nil {
333 if string(read) != content {
342 if _, err := io.Copy(writer, strings.NewReader(content)); err != nil {
345 if err := writer.Flush(context.Background()); err != nil {
357 if i%2 == 0 {
369 if err != nil {
372 if string(buf) != content {