Status (response.go)

resty · response.go · go · MIT
integration

Provides structured access to HTTP responses including status, headers, body, and unmarshalled results.

// Source: https://github.com/go-resty/resty | License: MIT | Copyright 2015-present Jeevanandam M., https://myjeeva.com <jeeva@myjeeva.com>
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) 2015-present Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

package resty

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"strings"
	"time"
)

//‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
// Response struct and methods
//_______________________________________________________________________

// Response holds response values for an executed request.
type Response struct {
	Request

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key