HTTP/REST Requests
HTTP requests are the most common type in Bruno, managed by theHttpRequestPane component.
Supported HTTP Methods
- GET
- POST
- PUT/PATCH
- DELETE
Request Body Types
TheRequestBody component supports multiple content types:
JSON
application/ld+json mode.XML
application/xml mode.Form URL Encoded
FormUrlEncodedParams component. Standard HTML form submissions.Multipart Form
MultipartFormParams. Supports file uploads and mixed content types.Text
application/text mode.SPARQL
application/sparql-query mode.Form URL Encoded Example
From the test suite:key_1 and key_2 above.GraphQL Requests
Bruno has first-class support for GraphQL, managed by theGraphQLRequestPane component.
Creating GraphQL Requests
Create GraphQL Request
Enter GraphQL Endpoint
https://api.example.com/graphql).Write Query
QueryEditor component to write your GraphQL query or mutation.Add Variables
GraphQLVariables component.GraphQL Query Example
From the test suite:GraphQL Features
Query & Mutation Support
Query & Mutation Support
Variables
Variables
GraphQLVariables component and reference them in your query using $variableName.Schema Introspection
Schema Introspection
GraphQLSchemaActions component allows you to fetch and view the GraphQL schema for autocomplete and validation.Variable Interpolation
Variable Interpolation
{{api_url}}, {{user_id}}, etc.GraphQL with Variables
gRPC Requests
Bruno supports gRPC requests through theGrpcRequestPane component.
Setting Up gRPC
Configure Protobuf Files
.proto files.Create gRPC Request
Configure URL
GrpcQueryUrl component to enter the gRPC server address.Select Method
Configure Body
GrpcBody component to provide the request message in JSON format.gRPC Features
Unary RPC
Server Streaming
Client Streaming
Bidirectional Streaming
Protobuf Configuration
InCollectionSettings/Protobuf, configure proto files:
WebSocket Requests
Bruno supports WebSocket connections through theWSRequestPane component.
Creating WebSocket Connections
Create WebSocket Request
Enter WebSocket URL
WsQueryUrl component to provide the ws:// or wss:// URL.Configure Settings
WSSettingsPane to set connection options.Connect
Send Messages
WsBody component to send messages through the connection.WebSocket Features
Message Types
Message Types
WsBody component handles message composition.Connection Management
Connection Management
Message History
Message History
WebSocket Example
Request Type Selection
When creating a request, Bruno determines which pane to display based on thetype metadata:
type: http→HttpRequestPanetype: graphql→GraphQLRequestPanetype: grpc→GrpcRequestPanetype: websocket→WSRequestPane
CollectionItemIcon component to display different icons based on request type.
Advanced Features
Request Chaining
Use post-response scripts to extract data and use it in subsequent requests:Collection Runner
Run multiple requests in sequence:Right-click Folder
Select 'Run'
RunCollectionItem modal.Configure Run
View Results
RunnerResults component.Best Practices
Choose the Right Type
Choose the Right Type
Organize by Protocol
Organize by Protocol
Use Variables for Endpoints
Use Variables for Endpoints
{{graphql_endpoint}}, {{grpc_host}}, {{ws_url}}.Document Protocol-Specific Headers
Document Protocol-Specific Headers
Content-Type: application/json, gRPC may need custom metadata.